Browse Source

fix: 查询controller 语法错误

冷冷 9 months ago
parent
commit
eae7900320
2 changed files with 2 additions and 2 deletions
  1. 1 1
      multiple/主子Contoller.java
  2. 1 1
      single/Controller.java

+ 1 - 1
multiple/主子Contoller.java

@@ -96,7 +96,7 @@ public class ${ClassName}Controller {
     @GetMapping("/details" )
     @PreAuthorize("@pms.hasPermission('${moduleName}_${functionName}_view')" )
     public R getDetails(@ParameterObject ${ClassName}Entity ${className}) {
-        return R.ok(${className}Service.listDeep(Wrappers.query(${className})}));
+        return R.ok(${className}Service.listDeep(Wrappers.query(${className})));
     }
 
     /**

+ 1 - 1
single/Controller.java

@@ -96,7 +96,7 @@ public class ${ClassName}Controller {
     @GetMapping("/details" )
     @PreAuthorize("@pms.hasPermission('${moduleName}_${functionName}_view')" )
     public R getDetails(@ParameterObject ${ClassName}Entity ${className}) {
-        return R.ok(${className}Service.list(Wrappers.query(${className})}));
+        return R.ok(${className}Service.list(Wrappers.query(${className})));
     }
 
     /**