| | |
| | | if (node != null) { |
| | | node.getChildren().add(forestNode); |
| | | } else { |
| | | forestNodeManager.addParentId(forestNode.getId()); |
| | | forestNodeManager.addParentId(forestNode.getChannelId()); |
| | | } |
| | | } |
| | | }); |
| | |
| | | items.forEach(forestNode -> { |
| | | if (forestNode.getParentId() != null) { |
| | | INode<T> node = forestNodeManager.getTreeNodeAt(forestNode.getParentId()); |
| | | if (CollectionUtil.contains(parentIds, forestNode.getId())){ |
| | | forestNodeManager.addParentId(forestNode.getId()); |
| | | if (CollectionUtil.contains(parentIds, forestNode.getChannelId())){ |
| | | forestNodeManager.addParentId(forestNode.getChannelId()); |
| | | } else { |
| | | if (node != null){ |
| | | node.getChildren().add(forestNode); |