Browse Source

定时任务 SLS日志 区域补全9位

tags/24080901
PoffyZhang 1 year ago
parent
commit
e409b7839f
2 changed files with 9 additions and 1 deletions
  1. +7
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/performance/manage/PerformanceAppraisalPlanManage.java
  2. +2
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java

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

@@ -1113,14 +1113,21 @@ public class PerformanceAppraisalPlanManage {
.eq(Project::getAreaCode, regionCode)
.eq(Project::getNewest,Boolean.TRUE)
.eq(Project::getStatus, ProjectStatusEnum.ACCEPTED.getCode()));
if (CollUtil.isEmpty(projectList)){
return PageVo.empty();
}
List<String> projectCodeList = projectList.stream().map(Project::getProjectCode).collect(Collectors.toList());
List<Integer> projectVersionList = projectList.stream().map(Project::getVersion).collect(Collectors.toList());
wrapper.in(ProjectApplication::getProjectCode,projectCodeList);
wrapper.in(ProjectApplication::getProjectVersion,projectVersionList);
wrapper.orderByDesc(ProjectApplication::getUpdateOn);
List<ProjectApplication> appList = projectApplicationService.list(wrapper);
if (CollUtil.isEmpty(appList)){
return PageVo.empty();
}

List<ProjectApplication> applicationList = Lists.newArrayList();

// 按项目编号+应用名称+IRS关联应用名称分组,获取最新版本的应用
Map<String, List<ProjectApplication>> appMap = appList.stream().collect(Collectors.groupingBy(p -> p.getProjectCode() + p.getRelatedExistsApplication() + p.getApplicationName()));
for (Map.Entry<String, List<ProjectApplication>> entry : appMap.entrySet()) {


+ 2
- 1
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java View File

@@ -327,7 +327,8 @@ public class CockpitStatsStatisticsTask {
//3.顶部数据
//3.1 计划项目数(通过单位内部审核的项目)
Integer planProjectNum = projects.stream().filter(p -> {
if(Objects.nonNull(p.getStatus()) && p.getStatus().compareTo(ProjectStatusEnum.PENDING_PREQUALIFICATION.getCode()) >= 0){
if(Objects.nonNull(p.getStatus()) &&
p.getStatus().compareTo(ProjectStatusEnum.PENDING_PREQUALIFICATION.getCode()) >= 0){
return Boolean.TRUE;
}
return Boolean.FALSE;


Loading…
Cancel
Save