优化属性类型
parent
46c146b8bb
commit
86cbae223a
|
|
@ -21,7 +21,7 @@ public class ForecastResultVo {
|
|||
* 时间
|
||||
*/
|
||||
@Schema(description="时间")
|
||||
private Date tm;
|
||||
private String tm;
|
||||
|
||||
/**
|
||||
* 预测入库流量
|
||||
|
|
|
|||
|
|
@ -223,8 +223,7 @@ public class ForecastResultsService extends ServiceImpl<ForecastResultsMapper, F
|
|||
for (int j = 0; j < forecastVoList.size(); j++) {
|
||||
FloodAlgorithemVo floodAlgorithemVo = forecastVoList.get(j);
|
||||
ForecastResultVo resultVo = new ForecastResultVo();
|
||||
Date dateTm = sdf.parse(floodAlgorithemVo.getDateStr());
|
||||
resultVo.setTm(dateTm);
|
||||
resultVo.setTm(floodAlgorithemVo.getDateStr());
|
||||
resultVo.setYcRkQValue(floodAlgorithemVo.getRq());// 预测入库流量
|
||||
// resultVo.setRealRkQValue();// 暂无真实入库流量
|
||||
resultVo.setYcCkQValue(floodAlgorithemVo.getCq());// 预测出库流量
|
||||
|
|
@ -248,6 +247,7 @@ public class ForecastResultsService extends ServiceImpl<ForecastResultsMapper, F
|
|||
}
|
||||
}
|
||||
resultVo.setDrp(floodAlgorithemVo.getDrp());
|
||||
Date dateTm = sdf.parse(floodAlgorithemVo.getDateStr());
|
||||
resultVo.setIspreDrp(dateTm.compareTo(nowHourTime) <= 0 ? "0" : "1");// 0:真实 1:预测
|
||||
resultVo.setR(floodAlgorithemVo.getR());
|
||||
resultVo.setFlLowLimLev(attResBase.getFlLowLimLev());
|
||||
|
|
|
|||
Loading…
Reference in New Issue