From 87baf79090606244ff3145addafa36abb96a8721 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Fri, 21 Jul 2023 16:58:17 +0800 Subject: [PATCH] =?UTF-8?q?debug=20=E6=98=AF=E5=90=A6=E6=98=AF=20=E4=B8=8A?= =?UTF-8?q?=E7=BA=A7=E6=9D=A1=E7=BA=BF=E4=B8=BB=E7=AE=A1=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=20=E5=AE=A1=E6=89=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 f28f78f..a0fd7af 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 @@ -478,13 +478,14 @@ public class ProjectLibManage { .eq(Project::getProjectCode,project.getProjectCode())); //采取批量删除 批量添加的方式 批量删除建设方案申报后的应用信息 - List projectIdList = projectService.list(Wrappers.lambdaQuery(Project.class) + List projectCodeList = projectService.list(Wrappers.lambdaQuery(Project.class) .eq(Project::getProjectCode, project.getProjectCode()) - .eq(Project::getIsConstruct, Boolean.TRUE)).stream() - .map(Project::getId).collect(Collectors.toList()); + .eq(Project::getIsConstruct, isConstruct)).stream() + .map(Project::getProjectCode).collect(Collectors.toList()); projectApplicationService.remove(Wrappers.lambdaQuery(ProjectApplication.class) .eq(ProjectApplication::getProjectCode,project.getProjectCode()) - .in(CollUtil.isNotEmpty(projectIdList),ProjectApplication::getProjectId,projectIdList)); + .in(CollUtil.isNotEmpty(projectCodeList),ProjectApplication::getProjectCode,projectCodeList) + .eq(ProjectApplication::getIsConstruct,isConstruct)); //app List applicationList = projecDto.getApplicationList();