mirror of https://gitee.com/xiaonuobase/snowy
【修复】修复根据节点id获取父节点和子节点id集合且包含自己的方法中未包含自己id的bug
parent
1ed2ea90a6
commit
45542a878f
|
@ -521,7 +521,7 @@ public class SysOrgServiceImpl extends ServiceImpl<SysOrgMapper, SysOrg> impleme
|
|||
private List<Long> getParentAndChildIdListWithSelfById(Long id) {
|
||||
Set<Long> resultSet = CollectionUtil.newHashSet();
|
||||
List<Long> parentIdListById = this.getParentIdListById(id);
|
||||
List<Long> childIdListById = this.getChildIdListById(id);
|
||||
List<Long> childIdListById = this.getChildIdListWithSelfById(id);
|
||||
resultSet.addAll(parentIdListById);
|
||||
resultSet.addAll(childIdListById);
|
||||
return CollectionUtil.newArrayList(resultSet);
|
||||
|
|
Loading…
Reference in New Issue