Bläddra i källkod

删除课表bug处理

wanxl 1 år sedan
förälder
incheckning
53b2ba69e3

+ 1 - 1
src/main/java/com/template/api/ClassScheduleAPI.java

@@ -26,7 +26,7 @@ public interface ClassScheduleAPI {
 
 
     @PostMapping("/deleteSchedule")
     @PostMapping("/deleteSchedule")
     @ApiOperation(value = "删除课表", notes = "删除课表", httpMethod = "POST")
     @ApiOperation(value = "删除课表", notes = "删除课表", httpMethod = "POST")
-    CommonResult deleteSchedule(@RequestBody List<Integer> ids);
+    CommonResult deleteSchedule(@RequestBody List<String> ids);
 
 
     @PostMapping("/insertSchedule")
     @PostMapping("/insertSchedule")
     @ApiOperation(value = "删除课表", notes = "删除课表", httpMethod = "POST")
     @ApiOperation(value = "删除课表", notes = "删除课表", httpMethod = "POST")

+ 1 - 1
src/main/java/com/template/controller/ClassScheduleController.java

@@ -204,7 +204,7 @@ public class ClassScheduleController implements ClassScheduleAPI {
     }
     }
 
 
     @Override
     @Override
-    public CommonResult deleteSchedule(List<Integer> ids) {
+    public CommonResult deleteSchedule(List<String> ids) {
         boolean a =classScheduleService.removeByIds(ids);
         boolean a =classScheduleService.removeByIds(ids);
         if(!a){
         if(!a){
             return CommonResult.fail("删除失败");
             return CommonResult.fail("删除失败");