|
@@ -37,20 +37,24 @@ public class PilotRunningHandle extends AbstractProcessHandle { |
|
|
} else { |
|
|
} else { |
|
|
Wrapper<ProjectStatusChange> query = Wrappers.lambdaQuery(ProjectStatusChange.class) |
|
|
Wrapper<ProjectStatusChange> query = Wrappers.lambdaQuery(ProjectStatusChange.class) |
|
|
.eq(ProjectStatusChange::getProjectCode, ctx.getProject().getProjectCode()) |
|
|
.eq(ProjectStatusChange::getProjectCode, ctx.getProject().getProjectCode()) |
|
|
.eq(ProjectStatusChange::getEvent, ProjectStateChangeEvent.SUBMIT_FIRST_INSPECTED_FILES) |
|
|
|
|
|
|
|
|
.in(ProjectStatusChange::getEvent, |
|
|
|
|
|
ProjectStateChangeEvent.SUBMIT_FIRST_INSPECTED_FILES, |
|
|
|
|
|
ProjectStateChangeEvent.FINAL_ACCEPTANCE_APPLICATION) |
|
|
.orderByDesc(ProjectStatusChange::getCreateOn) |
|
|
.orderByDesc(ProjectStatusChange::getCreateOn) |
|
|
.last(BizConst.LIMIT_1); |
|
|
.last(BizConst.LIMIT_1); |
|
|
ProjectStatusChange change = projectStatusChangeService.getOne(query); |
|
|
ProjectStatusChange change = projectStatusChangeService.getOne(query); |
|
|
if (change != null) { |
|
|
if (change != null) { |
|
|
|
|
|
if (ProjectStateChangeEvent.SUBMIT_FIRST_INSPECTED_FILES.name().equals(change.getEvent())) { |
|
|
|
|
|
detail.setStepStatus(StepStatusEnum.ON_GOING); |
|
|
|
|
|
} else { |
|
|
|
|
|
detail.setStepStatus(StepStatusEnum.COMPLETED); |
|
|
|
|
|
} |
|
|
detail.setFinishTime(change.getCreateOn()); |
|
|
detail.setFinishTime(change.getCreateOn()); |
|
|
detail.setStepStatus(StepStatusEnum.COMPLETED); |
|
|
|
|
|
ctx.setPreStepStatus(StepStatusEnum.COMPLETED); |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
detail.setStepStatus(StepStatusEnum.NOT_START); |
|
|
detail.setStepStatus(StepStatusEnum.NOT_START); |
|
|
ctx.setPreStepStatus(StepStatusEnum.NOT_START); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
ctx.setPreStepStatus(detail.getStepStatus()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|