Commit 85e01375 authored by suhuiguang's avatar suhuiguang

1.增加注释

parent f8abe650
...@@ -1161,6 +1161,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i ...@@ -1161,6 +1161,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
List<Map<String, Long>> countList = iFormInstanceService.getBuildVideoCount(); List<Map<String, Long>> countList = iFormInstanceService.getBuildVideoCount();
Map<Long, Long> countMap = countList.stream().collect(Collectors.toMap(p -> p.get("buildId"), p -> p.get("total"))); Map<Long, Long> countMap = countList.stream().collect(Collectors.toMap(p -> p.get("buildId"), p -> p.get("total")));
companyBuildingList.forEach(c-> { companyBuildingList.forEach(c-> {
// 建筑类型数据,填充本级及子级包含的摄像头数量
if(!ALL_BUILDING.equals(c.getGroupType())){ if(!ALL_BUILDING.equals(c.getGroupType())){
c.setTotal(countMap.get(c.getInstanceId()) == null ? 0L : countMap.get(c.getInstanceId())); c.setTotal(countMap.get(c.getInstanceId()) == null ? 0L : countMap.get(c.getInstanceId()));
} else { } else {
......
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