Browse Source

修改执行计划生成的下次执行时间

车车 2 months ago
parent
commit
5df876f51d

+ 2 - 1
yudao-module-iscs/src/main/java/cn/iocoder/yudao/module/iscs/service/sop/SopExecutionPlanServiceImpl.java

@@ -407,7 +407,8 @@ public class SopExecutionPlanServiceImpl extends ServiceImpl<SopExecutionPlanMap
                         // 应为第一条是今天的数据,所以大于等于2才有后面需要执行的数据
                         && sopExecutionPlan.getPreviewDataList().size() >= 2) {
                         update(Wrappers.<SopExecutionPlanDO>lambdaUpdate()
-                                .eq(SopExecutionPlanDO::getSopId, executionPlanRespVO.getId())
+                                .eq(SopExecutionPlanDO::getId, executionPlanRespVO.getId())
+                                .set(SopExecutionPlanDO::getLastExecutDate, yyyymmdd)
                                 .set(SopExecutionPlanDO::getNextExecutDate, sopExecutionPlan.getPreviewDataList().get(1).getPlanDay()));
                 }