bug修复
This commit is contained in:
parent
21e2d2d788
commit
ac20a71ee0
|
|
@ -827,6 +827,11 @@ public class BigScreenController {
|
|||
for (SurvDeviceDeploy survDeviceDeploy : survStationInfo.getDeviceList()) {
|
||||
deviceList.add(survDeviceDeploy.getDeviceCode());
|
||||
deployList.add(survDeviceDeploy.getId());
|
||||
|
||||
List<ScEquZhibiao> equList = zhibiaoService.getAllChemical(deployList);
|
||||
if(!equList.isEmpty()){
|
||||
zhibiaoMap = equList.stream().collect(Collectors.groupingBy(ScEquZhibiao::getEquId));
|
||||
}
|
||||
if(PollutionConstants.SOIL_SURV.equals(survDeviceDeploy.getDeployType())){//土壤设备
|
||||
SurvTransdataSoilVo transdataSoil = transdataSoilService.getNewestData(survDeviceDeploy.getDeployCode());
|
||||
if(transdataSoil!=null) {
|
||||
|
|
@ -873,10 +878,7 @@ public class BigScreenController {
|
|||
survStationInfo.getDeviceList().retainAll(remainList);
|
||||
//补充在线状态
|
||||
survStationInfo.setDeviceList(iotutils.addOnlineStatus(survStationInfo.getDeviceList()));
|
||||
List<ScEquZhibiao> equList = zhibiaoService.getAllChemical(deployList);
|
||||
if(equList.size()>0){
|
||||
zhibiaoMap = equList.stream().collect(Collectors.groupingBy(ScEquZhibiao::getEquId));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -891,7 +893,7 @@ public class BigScreenController {
|
|||
}
|
||||
}
|
||||
}
|
||||
survStationInfo.setDeviceCount(survStationInfo.getDeviceList().size());
|
||||
survStationInfo.setDeviceCount(counts);
|
||||
survStationInfo.setLatestData(returnArrs);
|
||||
survStationInfo.setLatestSoilData(returnSoilArrs);
|
||||
survStationInfo.setLatestAirData(returnAirArrs);
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ public class SurvStationInfoController {
|
|||
}
|
||||
}
|
||||
List<ScEquZhibiao> equList = zhibiaoService.getShowedChemical(deployList);
|
||||
if(equList.size()>0){
|
||||
if(!equList.isEmpty()){
|
||||
zhibiaoMap = equList.stream().collect(Collectors.groupingBy(ScEquZhibiao::getEquId));
|
||||
TransZhiBiaoVo transZhiBiaoVo = new TransZhiBiaoVo();
|
||||
transZhiBiaoVo.setZhibiaos(equList);
|
||||
|
|
|
|||
Loading…
Reference in New Issue