From f452a7d5a0e47a3e6a8a39138adb2772885a5572 Mon Sep 17 00:00:00 2001 From: CMM <2198256324@qq.com> Date: Fri, 14 Jul 2023 10:55:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=BA=93=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;