xiaoxie
2022-04-18 6bb8f45e270681dbcb70aed663b406e7d905e091
src/main/java/com/genersoft/iot/vmp/utils/node/ForestNodeMerger.java
@@ -25,7 +25,7 @@
            if (node != null) {
               node.getChildren().add(forestNode);
            } else {
               forestNodeManager.addParentId(forestNode.getId());
               forestNodeManager.addParentId(forestNode.getChannelId());
            }
         }
      });
@@ -37,8 +37,8 @@
      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);