diff --git a/zh-module-applet/zh-applet-admin/src/main/java/org/jeecg/modules/appmana/controller/BigScreenController.java b/zh-module-applet/zh-applet-admin/src/main/java/org/jeecg/modules/appmana/controller/BigScreenController.java index 50435ec..817430a 100644 --- a/zh-module-applet/zh-applet-admin/src/main/java/org/jeecg/modules/appmana/controller/BigScreenController.java +++ b/zh-module-applet/zh-applet-admin/src/main/java/org/jeecg/modules/appmana/controller/BigScreenController.java @@ -584,7 +584,9 @@ public class BigScreenController { List deployTypes = new ArrayList<>(); deployTypes.add(PollutionConstants.SOIL_SURV); deployTypes.add(PollutionConstants.AIR_SURV); - List deploys = deployService.getDeviceListByStation(null,deployTypes); + deployTypes.add(PollutionConstants.WATER_QULITY); + List deploys = deployService.getDeviceListByStation(stationCode,deployTypes); + List waterIds = new ArrayList<>(); List soilIds = new ArrayList<>(); List airIds = new ArrayList<>(); if(!deploys.isEmpty()){ @@ -593,6 +595,8 @@ public class BigScreenController { soilIds.add(deploy.getId()); }else if(PollutionConstants.AIR_SURV.equals(deploy.getDeployType())){//气象设备 airIds.add(deploy.getId()); + }else if(PollutionConstants.WATER_QULITY.equals(deploy.getDeployType())){//水设备 + waterIds.add(deploy.getId()); } } } @@ -621,6 +625,18 @@ public class BigScreenController { } jsonObject.put("airHisSurvData", airDataTrans); + List waterDataTrans = new ArrayList<>(); + if(!waterIds.isEmpty()){ + List waterData = transdataSoilService.lambdaQuery() + .in(SurvTransdataSoil::getDeployId,waterIds) + .list(); + + for (SurvTransdataSoil datas : waterData) { + List trans = CommonUtils.constructSoil(datas); + waterDataTrans.addAll(trans); + } + } + jsonObject.put("waterHisSurvData", waterDataTrans); return Result.ok(jsonObject); }