Przeglądaj źródła

debug 查询最新项目

tags/24080901
PoffyZhang 1 rok temu
rodzic
commit
cfc1de17c7
2 zmienionych plików z 3 dodań i 2 usunięć
  1. +2
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/action/ProjectDeclareChoiceAction.java
  2. +1
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/service/impl/ProjectApplicationServiceImpl.java

+ 2
- 0
pmapi/src/main/java/com/ningdatech/pmapi/common/statemachine/action/ProjectDeclareChoiceAction.java Wyświetl plik

@@ -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;
}


+ 1
- 2
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/service/impl/ProjectApplicationServiceImpl.java Wyświetl plik

@@ -23,9 +23,8 @@ public class ProjectApplicationServiceImpl extends ServiceImpl<ProjectApplicatio

@Override
public List<ProjectApplication> getApplicationsByProject(Project project) {
Long projectId = project.getId();
List<ProjectApplication> apps = this.list(Wrappers.lambdaQuery(ProjectApplication.class)
.eq(ProjectApplication::getProjectId, projectId));
.eq(ProjectApplication::getProjectCode, project.getProjectCode()));
return apps;
}
}

Ładowanie…
Anuluj
Zapisz