|
@@ -143,6 +143,8 @@ public class DataMediumTermPowerForecastCorrectController extends BaseController
|
|
|
}
|
|
}
|
|
|
String newPower = multiplyPower(report.getPower(), factor);
|
|
String newPower = multiplyPower(report.getPower(), factor);
|
|
|
report.setPower(newPower);
|
|
report.setPower(newPower);
|
|
|
|
|
+ // create_time 为 INTEGER epoch 列, to_timestamp 映射出的 Date 无法回写, 置空使动态SQL跳过该列
|
|
|
|
|
+ report.setCreateTime(null);
|
|
|
dataMediumTermPowerForecastReportMapper.updateDataMediumTermPowerForecastReport(report);
|
|
dataMediumTermPowerForecastReportMapper.updateDataMediumTermPowerForecastReport(report);
|
|
|
DataMediumTermPowerForecastCorrect existing = dataMediumTermPowerForecastCorrectMapper.selectLatestByEntityAndForecastTime(entityId, report.getForecastTime());
|
|
DataMediumTermPowerForecastCorrect existing = dataMediumTermPowerForecastCorrectMapper.selectLatestByEntityAndForecastTime(entityId, report.getForecastTime());
|
|
|
if (existing != null)
|
|
if (existing != null)
|
|
@@ -209,6 +211,7 @@ public class DataMediumTermPowerForecastCorrectController extends BaseController
|
|
|
if (report != null)
|
|
if (report != null)
|
|
|
{
|
|
{
|
|
|
report.setPower(power.trim());
|
|
report.setPower(power.trim());
|
|
|
|
|
+ report.setCreateTime(null);
|
|
|
dataMediumTermPowerForecastReportMapper.updateDataMediumTermPowerForecastReport(report);
|
|
dataMediumTermPowerForecastReportMapper.updateDataMediumTermPowerForecastReport(report);
|
|
|
}
|
|
}
|
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|