diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java index 617a738..21331af 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java +++ b/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 allVersionProjectIds = projectService.getAllVersionProjectId(project); List projectInstList = projectInstService.list(Wrappers.lambdaQuery(ProjectInst.class) - .eq(ProjectInst::getProjectId, oldProject.getId())) + .in(ProjectInst::getProjectId, allVersionProjectIds)) .stream().map(p -> { p.setProjectId(newProjectId); return p;