Commit 50a5c5f5 authored by Ryan Loong's avatar Ryan Loong

update 删除班级前校验班级是否有学生

parent 314dd3c9
......@@ -39,7 +39,7 @@ public class ClassController {
@PostMapping("batchDeleted")
public Object batchDeleted(@RequestBody List<Integer> idList) {
String errMsg = classService.batchDeletedData(idList);
return StringUtils.isNotBlank(errMsg) ? ResponseUtil.ok("成功") : ResponseUtil.fail(402, errMsg);
return StringUtils.isNotBlank(errMsg) ? ResponseUtil.fail(402, errMsg) : ResponseUtil.ok("成功");
}
@GetMapping("/listAll")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment