|
|
@@ -53,11 +53,13 @@ public class ProjectDeclareChoiceAction implements Action<ProjectStatusEnum, Pro |
|
|
|
log.info("立项批复之后,项目的状态为:{}" + project.getStatus()); |
|
|
|
// 判断 是否有初次创建的应用 |
|
|
|
if (CollUtil.isEmpty(projectApplications)){ |
|
|
|
project.setStage(ProjectStatusEnum.PROJECT_APPROVED.getCode()); |
|
|
|
project.setStatus(ProjectStatusEnum.TO_BE_PURCHASED.getCode()); |
|
|
|
} |
|
|
|
projectApplications.stream().forEach(app -> { |
|
|
|
Integer isFirst = app.getIsFirst(); |
|
|
|
if(isFirst.equals(CommonEnum.YES.getCode())){ |
|
|
|
project.setStage(ProjectStatusEnum.NOT_APPROVED.getCode()); |
|
|
|
project.setStatus(ProjectStatusEnum.TO_BE_APP_REGISTER.getCode()); |
|
|
|
return; |
|
|
|
} |
|
|
|