修复洪水预测
parent
06a5350ffe
commit
ef3f159260
|
|
@ -221,6 +221,9 @@ public class ForecastResultsService extends ServiceImpl<ForecastResultsMapper, F
|
||||||
retMap = reorganizePptnRData(filterList, dt, period[0], period[1]);
|
retMap = reorganizePptnRData(filterList, dt, period[0], period[1]);
|
||||||
}
|
}
|
||||||
List<String> pForecastList = retMap.get("listForForecast").stream().map(s -> s.getDrp()).collect(Collectors.toList());
|
List<String> pForecastList = retMap.get("listForForecast").stream().map(s -> s.getDrp()).collect(Collectors.toList());
|
||||||
|
if(pForecastList.size() == 0){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Map<String, String> pRealMap = retMap.get("listForReal").stream().collect(Collectors.toMap(pptnR -> sdfMinute.format(pptnR.getTm()), StPptnR::getDrp));
|
Map<String, String> pRealMap = retMap.get("listForReal").stream().collect(Collectors.toMap(pptnR -> sdfMinute.format(pptnR.getTm()), StPptnR::getDrp));
|
||||||
double[] PList = pForecastList.stream().mapToDouble(Double::parseDouble).toArray();
|
double[] PList = pForecastList.stream().mapToDouble(Double::parseDouble).toArray();
|
||||||
// 预测执行
|
// 预测执行
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue