Browse Source

项目库流程详情修改

master
CMM 1 year ago
parent
commit
f452a7d5a0
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java

+ 2
- 1
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java View File

@@ -224,8 +224,9 @@ public class ProjectLibManage {
Project project = saveConstructProjectNewVersion(projectDto,instanceId,employeeCode,oldProject);
Long newProjectId = project.getId();
// 关联旧的项目的审核实例到新的项目ID
List<Long> allVersionProjectIds = projectService.getAllVersionProjectId(project);
List<ProjectInst> projectInstList = projectInstService.list(Wrappers.lambdaQuery(ProjectInst.class)
.eq(ProjectInst::getProjectId, oldProject.getId()))
.in(ProjectInst::getProjectId, allVersionProjectIds))
.stream().map(p -> {
p.setProjectId(newProjectId);
return p;


Loading…
Cancel
Save