Parcourir la source

Merge branch 'ls2_performance_appraisal_0801' of http://git.ningdatech.com/liushuai/project-management into dev

master
CMM il y a 1 an
Parent
révision
568e08a23c
1 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. +5
    -4
      pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java

+ 5
- 4
pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java Voir le fichier

@@ -449,7 +449,8 @@ public class PerformanceAppraisalPlanManage {
throw new BizException(names + CommonConst.APP_REPEAT);
}

Map<Long, ProjectApplication> applicationMap = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class).in(ProjectApplication::getId, applicationIds)).stream()
Map<Long, ProjectApplication> 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<Long> applicationIds = editDTO.getApplicationIds();
Map<Long, ProjectApplication> applicationMap = applicationService.list(Wrappers.lambdaQuery(ProjectApplication.class).in(ProjectApplication::getId, applicationIds)).stream()
Map<Long, ProjectApplication> 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);


Chargement…
Annuler
Enregistrer