|
@@ -175,10 +175,13 @@ public class SharePathServiceImpl implements SharePathService {
|
|
|
if (!descs.isEmpty()) {
|
|
|
List<SharePathDO> descList = sharePathMapper.selectList(new LambdaQueryWrapperX<SharePathDO>().ne(SharePathDO::getAncestor, 1).in(SharePathDO::getDescendant, descs));
|
|
|
List<TreeNode> treeNodes1 = sharePathDO2TreeNode(descList);
|
|
|
- deep = deep.stream().filter(k -> k.getDeep() == 1).collect(Collectors.toList());
|
|
|
+// deep = deep.stream().filter(k -> k.getDeep() == 1).collect(Collectors.toList());
|
|
|
deep.addAll(treeNodes1);
|
|
|
}
|
|
|
}
|
|
|
+ // 只需要深度等于1的数据
|
|
|
+ deep = deep.stream().filter(k -> k.getDeep() == 1).collect(Collectors.toList());
|
|
|
+
|
|
|
// 整合结构
|
|
|
List<TreeNode> treeNodes = listWithTree(deep, userId);
|
|
|
|