|
@@ -862,7 +862,7 @@ public class KprAimWaterCollecationBizFun {
|
|
LocalDateTime startDate = LocalDateTime.now().withYear(Integer.valueOf(yearStr))
|
|
LocalDateTime startDate = LocalDateTime.now().withYear(Integer.valueOf(yearStr))
|
|
.withMonth(Integer.valueOf(monthStr)).withHour(0).withMinute(0).withSecond(0).withNano(0);
|
|
.withMonth(Integer.valueOf(monthStr)).withHour(0).withMinute(0).withSecond(0).withNano(0);
|
|
//TODO 总体逻辑: 先查询指定月上一年的每日平均值,再按平均值的上下啊百分比去插入指定的浮动百分比数据
|
|
//TODO 总体逻辑: 先查询指定月上一年的每日平均值,再按平均值的上下啊百分比去插入指定的浮动百分比数据
|
|
- for (int i = -2;i<=3;i++){
|
|
|
|
|
|
+ for (int i = 0;i<=3;i++){
|
|
LocalDateTime dateNow = startDate.minusDays(-i);//当前循环时间
|
|
LocalDateTime dateNow = startDate.minusDays(-i);//当前循环时间
|
|
//TODO 数据库操作 A 调用对应时间预测接口 B 在修改实际值
|
|
//TODO 数据库操作 A 调用对应时间预测接口 B 在修改实际值
|
|
DateTimeFormatter formatter2 = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
DateTimeFormatter formatter2 = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|