Commit 4e3a1943 authored by zhangsen's avatar zhangsen

bug 修改

parent 744ffa81
......@@ -32,4 +32,6 @@ public class IotIndexResVo {
private List<IotDataVO> iotData;
private String equipId;
}
......@@ -990,6 +990,7 @@ public class TopographyController extends AbstractBaseController {
vo.setNameKey(index.getPerfQuotaDefinitionId());
vo.setUnit(index.getUnitName());
vo.setTimes(dateMap.get(index.getPerfQuotaDefinitionId()));
vo.setEquipId(specId);
if (waterLevelIndexKey.contains(vo.getNameKey())) {
resContainsWaterLevelList.add(vo);
} else {
......@@ -1008,14 +1009,14 @@ public class TopographyController extends AbstractBaseController {
}
List<Date> containsWaterDates = new ArrayList<>();
Map<Long, Map<Date, IotDataVO>> iotDataAndDateMap= new HashMap<>();
Map<String, Map<Date, IotDataVO>> iotDataAndDateMap= new HashMap<>();
finalResContainsWaterLevel.stream().forEach(item -> {
containsWaterDates.addAll(item.getTimes());
Map<Date, IotDataVO> dateDataMap = new HashMap<>();
for (int i = 0; i < item.getTimes().size(); i++) {
dateDataMap.put(item.getTimes().get(i), item.getIotData().get(i));
}
iotDataAndDateMap.put(item.getId(), dateDataMap);
iotDataAndDateMap.put(item.getId() + item.getEquipId(), dateDataMap);
});
......@@ -1030,7 +1031,7 @@ public class TopographyController extends AbstractBaseController {
iotIndexRes.setId(indexResVo.getId());
iotIndexRes.setNameKey(indexResVo.getNameKey());
iotIndexRes.setUnit(indexResVo.getUnit());
Map<Date, IotDataVO> dateIotDataVOMap = iotDataAndDateMap.get(indexResVo.getId());
Map<Date, IotDataVO> dateIotDataVOMap = iotDataAndDateMap.get(indexResVo.getId() + indexResVo.getEquipId());
List<IotDataVO> list = new ArrayList<>();
collect.forEach(item -> {
IotDataVO iotDataVO = new IotDataVO();
......
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