|
|
@ -280,6 +280,8 @@ public class SysDeptServiceImpl implements ISysDeptService {
|
|
|
|
dept.setAncestors(newAncestors);
|
|
|
|
dept.setAncestors(newAncestors);
|
|
|
|
updateDeptChildren(dept.getDeptId(), newAncestors, oldAncestors);
|
|
|
|
updateDeptChildren(dept.getDeptId(), newAncestors, oldAncestors);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
dept.setAncestors(oldDept.getAncestors());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int result = baseMapper.updateById(dept);
|
|
|
|
int result = baseMapper.updateById(dept);
|
|
|
|
if (UserConstants.DEPT_NORMAL.equals(dept.getStatus()) && StringUtils.isNotEmpty(dept.getAncestors())
|
|
|
|
if (UserConstants.DEPT_NORMAL.equals(dept.getStatus()) && StringUtils.isNotEmpty(dept.getAncestors())
|
|
|
|