洪水预报优化

master
cxw 2024-09-09 17:00:20 +08:00
parent ae73871617
commit ce3c087038
1 changed files with 6 additions and 1 deletions

View File

@ -153,7 +153,12 @@ public class ForecastResultsService extends ServiceImpl<ForecastResultsMapper, F
qwExisted = new QueryWrapper<StPptnR>().eq("stcd", attResBase.getStcd()).ge("tm", startTime).le("tm", endTime).orderBy(true, true, "tm");
} else {
qwExisted = new QueryWrapper<StPptnR>().eq("stcd", attResBase.getStcd()).ge("tm", startTime).le("tm", nowHourTime).orderBy(true, true, "tm");
pptnRFutureList = getForecastDrpData(nowHourTime, attResBase.getStcd());
try {
// 获取预报数据
pptnRFutureList = getForecastDrpData(nowHourTime, attResBase.getStcd());
} catch (IllegalArgumentException e) {
log.error("该时间无预报数据");
}
}
List<StPptnR> pptnRExistedList = stPptnRService.list(qwExisted);
pptnRAllList.addAll(pptnRExistedList);