【修复】修复根据节点id获取父节点和子节点id集合且包含自己的方法中未包含自己id的bug

pull/22/head
xuyuxiang 2021-04-12 11:36:25 +08:00
parent 1ed2ea90a6
commit 45542a878f
1 changed files with 1 additions and 1 deletions

View File

@ -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);