tianyunperfect 2 years ago
parent
commit
1c88f28f29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mybatis-plus/src/main/resources/templates/controller1.java.ftl

+ 1 - 1
mybatis-plus/src/main/resources/templates/controller1.java.ftl

@@ -65,7 +65,7 @@ public class ${table.controllerName} {
     }
 
     @PostMapping("/delete/batch")
-    public Boolean deleteBatch(List<Integer> ids) {
+    public Boolean deleteBatch(@RequestBody List<Integer> ids) {
         return ${table.entityPath}Service.removeBatchByIds(ids);
     }
 }