|
|
@@ -81,16 +81,16 @@ public class ProjectApprovalHandle extends AbstractProcessBusinessHandle { |
|
|
|
if (ProjectStatusEnum.TO_BE_APPROVED.getCode().equals(status)){ |
|
|
|
// 根据建设方案评审通过的时间获取 |
|
|
|
ProjectStatusChange projectStatusChange = projectStatusChangeService.getOne(Wrappers.lambdaQuery(ProjectStatusChange.class) |
|
|
|
.eq(ProjectStatusChange::getProjectId, projectId) |
|
|
|
.eq(ProjectStatusChange::getProjectCode, project.getProjectCode()) |
|
|
|
.eq(ProjectStatusChange::getEvent, ProjectStatusChangeEvent.PLAN_REVIEW_PASS.name()) |
|
|
|
.last("limit 1")); |
|
|
|
processDetailVO.setFinishTime(projectStatusChange.getCreateOn()); |
|
|
|
processDetailVO.setStepStatus(StepStatusEnum.ON_GOING); |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// 取 状态机 改变状态时间 |
|
|
|
ProjectStatusChange projectStatusChange = projectStatusChangeService.getOne(Wrappers.lambdaQuery(ProjectStatusChange.class) |
|
|
|
.eq(ProjectStatusChange::getProjectId, projectId) |
|
|
|
.eq(ProjectStatusChange::getProjectCode, project.getProjectCode()) |
|
|
|
.eq(ProjectStatusChange::getEvent, ProjectStatusChangeEvent.PROJECT_APPROVAL.name()) |
|
|
|
.last("limit 1")); |
|
|
|
if (Objects.nonNull(projectStatusChange)) { |
|
|
|