树级结构更新子节点使用replaceFirst

pull/65/MERGE
RuoYi 4 years ago
parent b48e6fb19a
commit 7f802e8274

@ -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…
Cancel
Save