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