|
|
@ -241,7 +241,7 @@ public class SysDeptServiceImpl implements ISysDeptService |
|
|
|
List<SysDept> children = deptMapper.selectChildrenDeptById(deptId); |
|
|
|
List<SysDept> children = deptMapper.selectChildrenDeptById(deptId); |
|
|
|
for (SysDept child : children) |
|
|
|
for (SysDept child : children) |
|
|
|
{ |
|
|
|
{ |
|
|
|
child.setAncestors(child.getAncestors().replace(oldAncestors, newAncestors)); |
|
|
|
child.setAncestors(child.getAncestors().replaceFirst(oldAncestors, newAncestors)); |
|
|
|
} |
|
|
|
} |
|
|
|
if (children.size() > 0) |
|
|
|
if (children.size() > 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|