From 0b2d2267577c48767b1a1ccd48aff856d3ca6572 Mon Sep 17 00:00:00 2001 From: shijie <648688341@qq.com> Date: Mon, 19 Apr 2021 17:54:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=93=E4=B8=9A=E7=9A=84?= =?UTF-8?q?=E5=90=8C=E6=97=B6=E5=88=A0=E9=99=A4=E5=91=98=E5=B7=A5=EF=BC=88?= =?UTF-8?q?=E5=81=87=E5=88=A0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/msdw/tms/controller/SystemSettingController.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/msdw/tms/controller/SystemSettingController.java b/src/main/java/com/msdw/tms/controller/SystemSettingController.java index 0949acd..8ce92a7 100644 --- a/src/main/java/com/msdw/tms/controller/SystemSettingController.java +++ b/src/main/java/com/msdw/tms/controller/SystemSettingController.java @@ -106,7 +106,9 @@ public class SystemSettingController implements SystemSetttingApi { public R dalStaffByStaffGradeId(@RequestParam("staffGradeId") Integer staffGradeId){ //根据staffGradeId查询staff表中的userId,然后调用批量删除员工信息接口 List userIds = systemSetttingService.queryUserIdsByGradeId(staffGradeId); - systemSetttingService.daleteBatchStaff(userIds); + if(userIds.size()>0){ + systemSetttingService.daleteBatchStaff(userIds); + } return R.ok(); } @@ -118,7 +120,9 @@ public class SystemSettingController implements SystemSetttingApi { public R dalStaffByProfessionalId(@RequestParam("staffProfessionalArchitectureId") Integer staffProfessionalArchitectureId){ //根据staffGradeId查询staff表中的userId,然后调用批量删除员工信息接口 List userIds = systemSetttingService.queryUserIdsByProfessionalId(staffProfessionalArchitectureId); - systemSetttingService.daleteBatchStaff(userIds); + if(userIds.size()>0){ + systemSetttingService.daleteBatchStaff(userIds); + } return R.ok(); }