|
|
@@ -73,7 +73,7 @@ public class SopExecutionPlanServiceImpl extends ServiceImpl<SopExecutionPlanMap
|
|
|
SopExecutionPlanRespVO sopExecutionPlan1 = getSopExecutionPlan(sopExecutionPlan.getId());
|
|
|
if (!sopExecutionPlan1.getPreviewDataList().isEmpty()) {
|
|
|
sopExecutionPlanMapper.update(Wrappers.<SopExecutionPlanDO>lambdaUpdate()
|
|
|
- .eq(SopExecutionPlanDO::getSopId, sopExecutionPlan.getId())
|
|
|
+ .eq(SopExecutionPlanDO::getId, sopExecutionPlan.getId())
|
|
|
.set(SopExecutionPlanDO::getNextExecutDate, sopExecutionPlan1.getPreviewDataList().get(0).getPlanDay()));
|
|
|
/*if (sopExecutionPlan1.getPreviewDataList().get(0).getPlanDay().equals(DateUtil.format(new Date(), "yyyy-MM-dd"))) {
|
|
|
// 如果初始化的
|
|
|
@@ -95,7 +95,7 @@ public class SopExecutionPlanServiceImpl extends ServiceImpl<SopExecutionPlanMap
|
|
|
!updateReqVO.getTimePoint().equals(byId.getTimePoint())) {
|
|
|
// 改动了计划的实质性内容,需要直接修改计划的开始时间
|
|
|
updateReqVO.setCreateTime(LocalDateTime.now());
|
|
|
- // 获取新的书简周期
|
|
|
+ // 获取新的数据周期
|
|
|
List<String> previewDateList = getPreviewDateList(updateReqVO.getEffectiveTime(), updateReqVO.getFrequencyUnit(), updateReqVO.getFrequency(), updateReqVO.getTimePoint());
|
|
|
updateReqVO.setNextExecutDate(previewDateList.isEmpty() ? "" : previewDateList.get(0));
|
|
|
}
|
|
|
@@ -372,7 +372,6 @@ public class SopExecutionPlanServiceImpl extends ServiceImpl<SopExecutionPlanMap
|
|
|
@Transactional
|
|
|
@Override
|
|
|
public Boolean addJobBySopExecutionPlan() throws JsonProcessingException {
|
|
|
-
|
|
|
String yyyymmdd = DateUtil.format(new Date(), "yyyy-MM-dd");
|
|
|
SopExecutionPlanRespVO sopExecutionPlanRespVO = new SopExecutionPlanRespVO();
|
|
|
sopExecutionPlanRespVO.setNextExecutDate(yyyymmdd);
|