|
|
@ -108,6 +108,9 @@ public class SystemSettingController implements SystemSetttingApi { |
|
|
|
List<Integer> userIds = systemSetttingService.queryUserIdsByGradeId(staffGradeId); |
|
|
|
List<Integer> userIds = systemSetttingService.queryUserIdsByGradeId(staffGradeId); |
|
|
|
if(userIds.size()>0){ |
|
|
|
if(userIds.size()>0){ |
|
|
|
systemSetttingService.daleteBatchStaff(userIds); |
|
|
|
systemSetttingService.daleteBatchStaff(userIds); |
|
|
|
|
|
|
|
systemSetttingService.daleteBatchStaffPs(staffGradeId); |
|
|
|
|
|
|
|
}else{//如果组织架构下面没有员工,则只删除组织架构
|
|
|
|
|
|
|
|
systemSetttingService.daleteBatchStaffPs(staffGradeId); |
|
|
|
} |
|
|
|
} |
|
|
|
return R.ok(); |
|
|
|
return R.ok(); |
|
|
|
} |
|
|
|
} |
|
|
|