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