瀏覽代碼

项目库流程详情修改

master
CMM 1 年之前
父節點
當前提交
f452a7d5a0
共有 1 個文件被更改,包括 2 次插入1 次删除
  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 查看文件

@@ -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…
取消
儲存