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