面源、畜禽数据根据设备监测项配置生成数据

This commit is contained in:
zy 2025-11-28 15:28:59 +08:00
parent 5d59fa7cbf
commit 5c5af49668
1 changed files with 2 additions and 2 deletions

View File

@ -51,14 +51,14 @@ public class DataExamineTask {
for (SurvDeviceDeploy deploy : deployList) {
log.warn("=================处理设备:{}====================",deploy.getDeployCode());
if(deploy.getDeployType().equals(PollutionConstants.WATER_LIVE)){
SurvTransdataLivestockwater survTransdataLivestockwater = historyLiveWaterService.genData(deploy.getDeployCode());
SurvTransdataLivestockwater survTransdataLivestockwater = historyLiveWaterService.genData(deploy);
if(survTransdataLivestockwater!=null){
log.warn("----------设备号:{},生成成功,时间:{}-----------",deploy.getDeployCode(),sdf.format(survTransdataLivestockwater.getDataDateTime()));
}else{
log.warn("----------设备号:{},跳过------------",deploy.getDeployCode());
}
} else if (deploy.getDeployType().equals(PollutionConstants.WATER_ORIENT)) {
SurvTransdataOrientwater survTransdataOrientwater = historyOrientwaterService.genData(deploy.getDeployCode());
SurvTransdataOrientwater survTransdataOrientwater = historyOrientwaterService.genData(deploy);
if(survTransdataOrientwater!=null){
log.warn("----------设备号:{},生成成功,时间:{}-----------",deploy.getDeployCode(),sdf.format(survTransdataOrientwater.getDataDateTime()));
}else{