|
@@ -634,7 +634,16 @@ public class PerformanceAppraisalPlanManage { |
|
|
List<String> projectCodeList = groupList.stream() |
|
|
List<String> projectCodeList = groupList.stream() |
|
|
.map(PerformanceAppraisalProjectGroup::getProjectCodes) |
|
|
.map(PerformanceAppraisalProjectGroup::getProjectCodes) |
|
|
.collect(Collectors.toList()); |
|
|
.collect(Collectors.toList()); |
|
|
checkProjectCodes(dto.getProjectCodes(),projectCodeList); |
|
|
|
|
|
|
|
|
List<String> compareCodes = Lists.newArrayList(); |
|
|
|
|
|
for (String projectCode : projectCodeList) { |
|
|
|
|
|
if (projectCode.contains(StrPool.COMMA)){ |
|
|
|
|
|
List<String> codes = Arrays.asList(projectCode.split(StrPool.COMMA)); |
|
|
|
|
|
compareCodes.addAll(codes); |
|
|
|
|
|
}else { |
|
|
|
|
|
compareCodes.add(projectCode); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
checkProjectCodes(dto.getProjectCodes(),compareCodes); |
|
|
group.setProjectCodes(String.join(StrPool.COMMA, dto.getProjectCodes())); |
|
|
group.setProjectCodes(String.join(StrPool.COMMA, dto.getProjectCodes())); |
|
|
} |
|
|
} |
|
|
if(CollUtil.isNotEmpty(dto.getReAppraisalUsers())){ |
|
|
if(CollUtil.isNotEmpty(dto.getReAppraisalUsers())){ |
|
@@ -652,7 +661,7 @@ public class PerformanceAppraisalPlanManage { |
|
|
compareUsers.add(reUser); |
|
|
compareUsers.add(reUser); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
checkReAppraisalAndVerifyUsers(dto.getReAppraisalUsers(),reUserList,CommonConst.REAPPRAISAL_TYPE); |
|
|
|
|
|
|
|
|
checkReAppraisalAndVerifyUsers(dto.getReAppraisalUsers(),compareUsers,CommonConst.REAPPRAISAL_TYPE); |
|
|
group.setReAppraisalUsers(String.join(StrPool.COMMA, dto.getReAppraisalUsers())); |
|
|
group.setReAppraisalUsers(String.join(StrPool.COMMA, dto.getReAppraisalUsers())); |
|
|
} |
|
|
} |
|
|
if(CollUtil.isNotEmpty(dto.getVerificationUsers())){ |
|
|
if(CollUtil.isNotEmpty(dto.getVerificationUsers())){ |
|
@@ -670,7 +679,7 @@ public class PerformanceAppraisalPlanManage { |
|
|
compareUsers.add(verifyUser); |
|
|
compareUsers.add(verifyUser); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
checkReAppraisalAndVerifyUsers(dto.getVerificationUsers(),verifyList,CommonConst.VERIFY_TYPE); |
|
|
|
|
|
|
|
|
checkReAppraisalAndVerifyUsers(dto.getVerificationUsers(),compareUsers,CommonConst.VERIFY_TYPE); |
|
|
group.setVerificationUsers(String.join(StrPool.COMMA, dto.getVerificationUsers())); |
|
|
group.setVerificationUsers(String.join(StrPool.COMMA, dto.getVerificationUsers())); |
|
|
} |
|
|
} |
|
|
group.setUpdateOn(LocalDateTime.now()); |
|
|
group.setUpdateOn(LocalDateTime.now()); |
|
|