洪水预报优化
parent
ae73871617
commit
ce3c087038
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue