tianyunperfect 2 yıl önce
ebeveyn
işleme
1c88f28f29

+ 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);
     }
 }