Commit b0db18f0 by 宋祥

Merge branch 'dev' of http://129.211.46.84:8800/platform/hg-smart into master-dc

parents 65b100ce a2e9eb71
...@@ -349,15 +349,15 @@ public class ServiceHGWD001D extends TreeService { ...@@ -349,15 +349,15 @@ public class ServiceHGWD001D extends TreeService {
return; return;
} }
List<String> labels = ObjectUtils.listKey(nodes, "label"); List<String> labels = ObjectUtils.listKey(nodes, "label");
Map<String, Integer> resultMap = null; Map<String, Integer> resultMap = HGWDTools.HgWd001.countByParent(labels);
if (isType) {
resultMap = HGWDTools.HgWd001.countBySource(labels);
} else {
resultMap = HGWDTools.HgWd001.countByParent(labels);
}
for (Map node : nodes) { for (Map node : nodes) {
Integer cnt = resultMap == null ? null : resultMap.get(node.get("label")); if (isType) {
node.put("leaf", cnt == null || cnt == 0 ? 1 : 0); node.put("leaf", 0);
} else {
String label = MapUtils.getString(node, "label");
Integer cnt = resultMap == null ? null : resultMap.get(label);
node.put("leaf", cnt == null || cnt == 0 ? 1 : 0);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment