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