소스 검색

删除课表bug处理

wanxl 1 년 전
부모
커밋
53b2ba69e3
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/main/java/com/template/api/ClassScheduleAPI.java
  2. 1 1
      src/main/java/com/template/controller/ClassScheduleController.java

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

@@ -26,7 +26,7 @@ public interface ClassScheduleAPI {
 
     @PostMapping("/deleteSchedule")
     @ApiOperation(value = "删除课表", notes = "删除课表", httpMethod = "POST")
-    CommonResult deleteSchedule(@RequestBody List<Integer> ids);
+    CommonResult deleteSchedule(@RequestBody List<String> ids);
 
     @PostMapping("/insertSchedule")
     @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
-    public CommonResult deleteSchedule(List<Integer> ids) {
+    public CommonResult deleteSchedule(List<String> ids) {
         boolean a =classScheduleService.removeByIds(ids);
         if(!a){
             return CommonResult.fail("删除失败");