Bladeren bron

河南郸城调度计划 日计划变更 方案库部分代码提交(未完全)

1037015548@qq.com 11 maanden geleden
bovenliggende
commit
e808f78361

+ 2 - 1
src/main/java/com/shkpr/service/aimodelpower/bizmgr/WODispatchPlanTmDoBizFun.java

@@ -581,7 +581,8 @@ public class WODispatchPlanTmDoBizFun {
                 }
 
                 //TODO 如果当前时间大于生效时间,说明生效时间过期,则加一天
-                LocalDateTime localNext = LocalDateTime.ofInstant(Instant.ofEpochMilli(nextTakeTime), ZoneId.systemDefault());
+                LocalDateTime localNext = LocalDateTime.ofInstant(Instant.ofEpochMilli(nextTakeTime), ZoneId.systemDefault())
+                        .minusMinutes(model.getDispatchLeadTime());
                 if(limitNextTakeTime<TimeTool.getCurMsUTC()){
                     nextTakeTime = Instant.ofEpochMilli(nextTakeTime)
                             .plus(1, ChronoUnit.DAYS).toEpochMilli();