diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/handle/ProjectPreliminaryInspectionHandle.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/handle/ProjectPreliminaryInspectionHandle.java index fef8a08..81d9ed5 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/handle/ProjectPreliminaryInspectionHandle.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/handle/ProjectPreliminaryInspectionHandle.java @@ -4,6 +4,7 @@ import static com.ningdatech.pmapi.projectlib.enumeration.ProjectStatusEnum.*; import java.util.Arrays; import java.util.List; +import java.util.Objects; import java.util.stream.Collectors; import com.ningdatech.pmapi.common.constant.BizConst; @@ -78,7 +79,9 @@ public class ProjectPreliminaryInspectionHandle extends AbstractProcessBusinessH .in(ProjectStatusChange::getProjectId, allVersionProjectIds) .eq(ProjectStatusChange::getEvent, ProjectStatusChangeEvent.PRELIMINARY_ACCEPTANCE_PUT_ON_RECORD.name()) .last(BizConst.LIMIT_1)); - processDetailVO.setFinishTime(projectStatusChange.getCreateOn()); + if(Objects.nonNull(projectStatusChange)){ + processDetailVO.setFinishTime(projectStatusChange.getCreateOn()); + } } processDetailVO.setProcessName(CommonConst.PROJECT_PRELIMINARY_INSPECTION); processSchedule.add(processDetailVO);