From 111dad35454127b8ff4519ce3fbc334a25d2304e Mon Sep 17 00:00:00 2001 From: CMM <2198256324@qq.com> Date: Wed, 23 Aug 2023 14:46:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A9=E6=95=88=E8=AF=84=E4=BB=B7-=E6=96=B0?= =?UTF-8?q?=E5=BB=BA=E3=80=81=E7=BC=96=E8=BE=91=E8=AE=A1=E5=88=92=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pmapi/performance/manage/PerformanceAppraisalPlanManage.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java index f2327a9..4332e96 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java @@ -449,7 +449,8 @@ public class PerformanceAppraisalPlanManage { throw new BizException(names + CommonConst.APP_REPEAT); } - Map applicationMap = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class).in(ProjectApplication::getId, applicationIds)).stream() + Map applicationMap = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class) + .in(ProjectApplication::getId, applicationIdList)).stream() .collect(Collectors.toMap(ProjectApplication::getId, a -> a)); for(Long applicationId : applicationIdList){ PerformanceAppraisalApplication paa = new PerformanceAppraisalApplication(); @@ -532,10 +533,10 @@ public class PerformanceAppraisalPlanManage { .eq(PerformanceAppraisalAppScoreInfo::getAppraisalId,editDTO.getId()) .in(PerformanceAppraisalAppScoreInfo::getApplicationId,applicationIdList)); - List applicationIds = editDTO.getApplicationIds(); - Map applicationMap = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class).in(ProjectApplication::getId, applicationIds)).stream() + Map applicationMap = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class) + .in(ProjectApplication::getId, applicationIdList)).stream() .collect(Collectors.toMap(ProjectApplication::getId, a -> a)); - for(Long applicationId : applicationIds){ + for(Long applicationId : applicationIdList){ PerformanceAppraisalApplication paa = new PerformanceAppraisalApplication(); paa.setAppraisalId(editDTO.getId()); paa.setApplicationId(applicationId);