Pārlūkot izejas kodu

绩效评价-待添加项目列表增加判空

tags/24080901
CMM pirms 1 gada
vecāks
revīzija
bc6f70b9e3
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java

+ 3
- 0
pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java Parādīt failu

@@ -1007,6 +1007,9 @@ public class PerformanceAppraisalPlanManage {
List<PerformanceAppraisalProject> appraisalProjectList = performanceAppraisalProjectService.list(Wrappers.lambdaQuery(PerformanceAppraisalProject.class)
.eq(PerformanceAppraisalProject::getAppraisalId, appraisalId));
List<String> projectCodes = appraisalProjectList.stream().map(PerformanceAppraisalProject::getProjectCode).collect(Collectors.toList());
if (CollUtil.isEmpty(projectCodes)){
return PageVo.empty();
}
LambdaQueryWrapper<Project> wrapper = Wrappers.lambdaQuery(Project.class)
.in(Project::getProjectCode, projectCodes)
.eq(Project::getNewest, Boolean.TRUE);


Notiek ielāde…
Atcelt
Saglabāt