fix 修复 开启子部门 父部门未关联开启问题
parent
2318b48b26
commit
cfdfd870bb
|
|
@ -280,6 +280,8 @@ public class SysDeptServiceImpl implements ISysDeptService {
|
|||
dept.setAncestors(newAncestors);
|
||||
updateDeptChildren(dept.getDeptId(), newAncestors, oldAncestors);
|
||||
}
|
||||
} else {
|
||||
dept.setAncestors(oldDept.getAncestors());
|
||||
}
|
||||
int result = baseMapper.updateById(dept);
|
||||
if (UserConstants.DEPT_NORMAL.equals(dept.getStatus()) && StringUtils.isNotEmpty(dept.getAncestors())
|
||||
|
|
|
|||
Loading…
Reference in New Issue