mirror of https://gitee.com/xiaonuobase/snowy
commit
6c4ddbde46
|
@ -75,8 +75,8 @@ public class TreeBuildFactory<T extends BaseTreeNode> {
|
||||||
if (ObjectUtil.isNotEmpty(nodeSubLists)) {
|
if (ObjectUtil.isNotEmpty(nodeSubLists)) {
|
||||||
nodeSubLists.forEach(t -> this.buildChildNodes(totalNodes, t, CollectionUtil.newArrayList()));
|
nodeSubLists.forEach(t -> this.buildChildNodes(totalNodes, t, CollectionUtil.newArrayList()));
|
||||||
}
|
}
|
||||||
childNodeLists.addAll(nodeSubLists);
|
// childNodeLists.addAll(nodeSubLists);
|
||||||
node.setChildren(childNodeLists);
|
node.setChildren(nodeSubLists);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -104,8 +104,9 @@ public class TreeBuildFactory<T extends BaseTreeNode> {
|
||||||
* @date 2020/4/5 14:13
|
* @date 2020/4/5 14:13
|
||||||
*/
|
*/
|
||||||
private List<T> executeBuilding(List<T> nodes) {
|
private List<T> executeBuilding(List<T> nodes) {
|
||||||
nodes.forEach(t -> this.buildChildNodes(nodes, t, CollectionUtil.newArrayList()));
|
List<T> parentNodes = afterBuild(nodes);
|
||||||
return nodes;
|
parentNodes.forEach(t -> this.buildChildNodes(nodes, t, CollectionUtil.newArrayList()));
|
||||||
|
return parentNodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue