Commit 41f56ab4 authored by chenhao's avatar chenhao

修改重点部位中建筑树节点的id值为0,原本是null

parent ce49e2f3
...@@ -418,6 +418,7 @@ public class KeySiteServiceImpl extends BaseService<KeySiteDto, KeySite, KeySite ...@@ -418,6 +418,7 @@ public class KeySiteServiceImpl extends BaseService<KeySiteDto, KeySite, KeySite
} }
Map<String, Object> reMap = parseTree((List<Map<String, Object>>)buildingMapList.get(0).get("children"),keySiteCountMap,allCount); Map<String, Object> reMap = parseTree((List<Map<String, Object>>)buildingMapList.get(0).get("children"),keySiteCountMap,allCount);
Map<String, Object> fristMap= buildingMapList.get(0); Map<String, Object> fristMap= buildingMapList.get(0);
fristMap.put("id", 0);
fristMap.put("name", fristMap.get("instanceName")+" ("+reMap.get("allCount")+")"); fristMap.put("name", fristMap.get("instanceName")+" ("+reMap.get("allCount")+")");
fristMap.put("children", fristMap.get("children")); fristMap.put("children", fristMap.get("children"));
buildingMapList.clear(); buildingMapList.clear();
......
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