洪水预报无数据
parent
b2040b0f8b
commit
bf9b0c2c06
|
|
@ -519,7 +519,7 @@ public class AttResBase implements Serializable {
|
||||||
*/
|
*/
|
||||||
@TableField(value="benefit")
|
@TableField(value="benefit")
|
||||||
@Schema(description="供水效益")
|
@Schema(description="供水效益")
|
||||||
private BigDecimal benefit;
|
private String benefit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 全流域面积
|
* 全流域面积
|
||||||
|
|
|
||||||
|
|
@ -195,6 +195,10 @@ public class ForecastResultsService extends ServiceImpl<ForecastResultsMapper, F
|
||||||
// 获取预报数据
|
// 获取预报数据
|
||||||
try {
|
try {
|
||||||
pptnRFutureList = getForecastDrpData(nowHourTime, "");
|
pptnRFutureList = getForecastDrpData(nowHourTime, "");
|
||||||
|
if(CollectionUtils.isEmpty(pptnRFutureList)) {
|
||||||
|
isHaveFuturePPtn = false;
|
||||||
|
log.error("该时间无预报数据");
|
||||||
|
}
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
isHaveFuturePPtn = false;
|
isHaveFuturePPtn = false;
|
||||||
log.error("该时间无预报数据");
|
log.error("该时间无预报数据");
|
||||||
|
|
@ -413,6 +417,9 @@ public class ForecastResultsService extends ServiceImpl<ForecastResultsMapper, F
|
||||||
}
|
}
|
||||||
tm = tm.replaceAll(" ", "").replaceAll("-", "");
|
tm = tm.replaceAll(" ", "").replaceAll("-", "");
|
||||||
List<RainGrib2Layer> gribList = forecastService.getGribData(tm, false);
|
List<RainGrib2Layer> gribList = forecastService.getGribData(tm, false);
|
||||||
|
if(CollectionUtils.isEmpty(gribList)){
|
||||||
|
return pptnRFutureList;
|
||||||
|
}
|
||||||
//24小时每个网格的总量
|
//24小时每个网格的总量
|
||||||
List<RainGrib2Layer> total = gribList.stream().filter(o -> o.getTmRange().getInterval() == 24).collect(Collectors.toList());
|
List<RainGrib2Layer> total = gribList.stream().filter(o -> o.getTmRange().getInterval() == 24).collect(Collectors.toList());
|
||||||
//24小时每个网格的逐小时雨量
|
//24小时每个网格的逐小时雨量
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue