|
@@ -61,9 +61,11 @@ public class PreliminaryPreviewHandle extends AbstractProcessBusinessHandle { |
|
|
if (Objects.isNull(project)){ |
|
|
if (Objects.isNull(project)){ |
|
|
throw new BizException("当前项目不存在!"); |
|
|
throw new BizException("当前项目不存在!"); |
|
|
} |
|
|
} |
|
|
|
|
|
//查出历史版本的 所有项目ID |
|
|
|
|
|
List<Long> allVersionProjectIds = projectService.getAllVersionProjectId(projectId); |
|
|
// 根据项目ID查询项目预审流程的流程状态 |
|
|
// 根据项目ID查询项目预审流程的流程状态 |
|
|
ProjectInst projectInst = projectInstService.getOne(Wrappers.lambdaQuery(ProjectInst.class) |
|
|
ProjectInst projectInst = projectInstService.getOne(Wrappers.lambdaQuery(ProjectInst.class) |
|
|
.eq(ProjectInst::getProjectId, projectId) |
|
|
|
|
|
|
|
|
.in(ProjectInst::getProjectId, allVersionProjectIds) |
|
|
.eq(ProjectInst::getInstType, InstTypeEnum.PRELIMINARY_PREVIEW.getCode()) |
|
|
.eq(ProjectInst::getInstType, InstTypeEnum.PRELIMINARY_PREVIEW.getCode()) |
|
|
.ne(ProjectInst::getInstCode, TodoCenterConstant.Declared.NULL_INST_CODE) |
|
|
.ne(ProjectInst::getInstCode, TodoCenterConstant.Declared.NULL_INST_CODE) |
|
|
.orderByDesc(ProjectInst::getCreatOn) |
|
|
.orderByDesc(ProjectInst::getCreatOn) |
|
|