Commit d7eb215f authored by litengwei's avatar litengwei

配置文件提交

parent 82123e0f
......@@ -233,7 +233,7 @@ public interface PlanTaskMapper extends BaseMapper {
void updatePlanTaskByPlanId(List<Long> ids, int finishStatus);
void updatePlanTaskDetailsByPlanId(List<Long> ids);
void updatePlanTaskDetailsByPlanId(@Param(value = "ids") List<Long> ids);
List<PlanTask> getInitPlanTaskList();
......
......@@ -297,13 +297,16 @@ public class JobService implements IJobService {
private void updatePlanTaskAndDetailStatus(PlanTask planTask) {
List<String> esIds = planTaskMapper.selectPlanTaskIdList(planTask.getPlanId(), PlanTaskFinishStatusEnum.UNDERWAY.getValue());
planTaskMapper.updatePlanTaskList(esIds, PlanTaskFinishStatusEnum.OVERTIME.getValue());
if(esIds.size() > 0) {
planTaskMapper.updatePlanTaskList(esIds, PlanTaskFinishStatusEnum.OVERTIME.getValue());
updateEsPlanTaskList(esIds, PlanTaskFinishStatusEnum.OVERTIME.getValue());
}
List<Long> ids = new ArrayList<>();
ids.add(planTask.getId());
if(!ValidationUtil.isEmpty(ids)){
planTaskMapper.updatePlanTaskDetailsByPlanId(ids);
}
updateEsPlanTaskList(esIds, PlanTaskFinishStatusEnum.OVERTIME.getValue());
createOmissionCheckRecord(planTask);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment