mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 21:32:07 +08:00
取消板件自动写入,bug1255,1225
This commit is contained in:
+4
@@ -114,6 +114,10 @@ public class DeptServiceImpl implements DeptService {
|
||||
}
|
||||
// 校验部门内用户操作
|
||||
checkCurrentWhenOperate(id);
|
||||
// 校验部门内是否存在用户,存在用户则禁止删除
|
||||
if (!userService.getUserListByDeptIds(Collections.singletonList(id)).isEmpty()) {
|
||||
throw ServiceExceptionUtil.exception(ErrorCodeConstants.DEPT_EXITS_USER);
|
||||
}
|
||||
// 删除部门
|
||||
deptMapper.deleteById(id);
|
||||
// 删除关联的用户
|
||||
|
||||
Reference in New Issue
Block a user