取消板件自动写入,bug1255,1225修改

This commit is contained in:
lym
2025-02-20 17:03:49 +08:00
parent bf4d6b052c
commit e5afa5e0aa
@@ -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);