Browse Source

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

tags/24080901
CMM 1 year ago
parent
commit
15f80b7343
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java

+ 18
- 0
pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java View File

@@ -645,6 +645,15 @@ public class PerformanceAppraisalPlanManage {
List<String> reUserList = groupList.stream()
.map(PerformanceAppraisalProjectGroup::getReAppraisalUsers)
.collect(Collectors.toList());
List<String> compareUsers = Lists.newArrayList();
for (String reUser : reUserList) {
if (reUser.contains(StrPool.COMMA)){
List<String> users = Arrays.asList(reUser.split(StrPool.COMMA));
compareUsers.addAll(users);
}else {
compareUsers.add(reUser);
}
}
checkReAppraisalAndVerifyUsers(dto.getReAppraisalUsers(),reUserList,CommonConst.REAPPRAISAL_TYPE);
group.setReAppraisalUsers(String.join(StrPool.COMMA, dto.getReAppraisalUsers()));
}
@@ -654,6 +663,15 @@ public class PerformanceAppraisalPlanManage {
List<String> verifyList = groupList.stream()
.map(PerformanceAppraisalProjectGroup::getVerificationUsers)
.collect(Collectors.toList());
List<String> compareUsers = Lists.newArrayList();
for (String verifyUser : verifyList) {
if (verifyUser.contains(StrPool.COMMA)){
List<String> users = Arrays.asList(verifyUser.split(StrPool.COMMA));
compareUsers.addAll(users);
}else {
compareUsers.add(verifyUser);
}
}
checkReAppraisalAndVerifyUsers(dto.getVerificationUsers(),verifyList,CommonConst.VERIFY_TYPE);
group.setVerificationUsers(String.join(StrPool.COMMA, dto.getVerificationUsers()));
}


Loading…
Cancel
Save