xiejun
2023-09-21 52ffefd06e59cbd56c1a919972866592379cfed2
Source/UBCS/ubcs-service-api/ubcs-util-api/src/main/java/com/vci/ubcs/starter/web/pagemodel/Tree.java
@@ -207,6 +207,34 @@
   }
   public void findSystemClassChild(List<Tree> treenode, List<Tree> children) {
      Tree node;
      for(Iterator var3 = treenode.iterator(); var3.hasNext(); this.getChildren().add(node)) {
         node = (Tree)var3.next();
         Iterator var5 = children.iterator();
         while(var5.hasNext()) {
            Tree childnode = (Tree)var5.next();
            if (node.getAttributes().get("classifyOid").equalsIgnoreCase(childnode.getParentId())) {
               childnode.setParentName(node.getText());
               if (StringUtil.isBlank(childnode.getParentBtmName())) {
                  childnode.setParentBtmName((String)node.getAttributes().getOrDefault("btmname", ""));
               }
               node.getChildren().add(childnode);
            }
         }
         if (node.getChildren().size() > 0) {
            this.findSystemClassChild(node.getChildren(), children);
            node.setLeaf(false);
         } else {
            node.setLeaf(true);
         }
      }
   }
   @Override
   public String toString() {
      return "Tree{oid='" + this.oid + '\'' + ", text='" + this.text + '\'' + ", leaf=" + this.leaf + ", showCheckbox=" + this.showCheckbox + ", checked=" + this.checked + ", children=" + this.children + ", icon='" + this.icon + '\'' + ", iconCls='" + this.iconCls + '\'' + ", parentId='" + this.parentId + '\'' + ", parentName='" + this.parentName + '\'' + ", parentBtmName='" + this.parentBtmName + '\'' + ", expanded=" + this.expanded + ", href='" + this.href + '\'' + ", index='" + this.index + '\'' + ", attributes=" + this.attributes + '}';
   }