|
@@ -418,7 +418,6 @@ public class TreeUtil {
|
|
|
CommonTree node = new CommonTree();
|
|
|
node.setId(key);
|
|
|
node.setKey(key);
|
|
|
- String childType = DictCache.getLabelByValue("CATEGORY_TYPE", key);
|
|
|
node.setTitle(DictCache.getLabelByValue("CATEGORY_TYPE", key));
|
|
|
node.setValue(DictCache.getLabelByValue("CATEGORY_TYPE", key));
|
|
|
// 组装children
|
|
@@ -428,7 +427,9 @@ public class TreeUtil {
|
|
|
TreeNode child = new TreeNode();
|
|
|
child.setId(item.getId());
|
|
|
child.setParentId(key);
|
|
|
- child.setTitle(DictCache.getLabelByValue(childType,item.getType()));
|
|
|
+ System.out.println("-----type----" + key);
|
|
|
+ System.out.println("-----item.getType()----" + item.getType());
|
|
|
+ child.setTitle(DictCache.getLabelByValue(key,item.getType()));
|
|
|
child.setValue(child.getTitle());
|
|
|
children.add(child);
|
|
|
});
|