树级结构更新子节点使用replaceFirst
This commit is contained in:
parent
dd384e4a31
commit
be5c19b764
@ -241,7 +241,7 @@ public class SysDeptServiceImpl implements ISysDeptService
|
||||
List<SysDept> children = deptMapper.selectChildrenDeptById(deptId);
|
||||
for (SysDept child : children)
|
||||
{
|
||||
child.setAncestors(child.getAncestors().replace(oldAncestors, newAncestors));
|
||||
child.setAncestors(child.getAncestors().replaceFirst(oldAncestors, newAncestors));
|
||||
}
|
||||
if (children.size() > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user