tianyunperfect 2 年之前
父节点
当前提交
1c88f28f29
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
     }
 }