1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| TreeNodeConfig treeNodeConfig = new TreeNodeConfig(); treeNodeConfig.setWeightKey("sortNum"); treeNodeConfig.setIdKey("xxxxId"); treeNodeConfig.setDeep(5); treeNodeConfig.setParentIdKey("parentId"); treeNodeConfig.setNameKey("children"); List<Tree<Long>> build = TreeUtil.build(zzzzs, treeTop, treeNodeConfig, (zzzz, tree) -> { tree.putExtra("xxxx", zzzz.getXxxxx()); tree.putExtra("xxxx", zzzz.getXxxxx()); tree.putExtra("xxxx", zzzz.getXxxxx()); tree.putExtra("xxxx", zzzz.getXxxxx()); tree.putExtra("xxxx", zzzz.getXxxxx()); tree.putExtra("sortNum", zzzz.getXxxxx()); tree.putExtra("xxxxx", zzzz.getXxxxx()); }); return build;
|