Преглед на файлове

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

车车 преди 2 месеца
родител
ревизия
5df876f51d
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      yudao-module-iscs/src/main/java/cn/iocoder/yudao/module/iscs/service/sop/SopExecutionPlanServiceImpl.java

+ 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()));
                 }