Kaynağa Gözat

驾驶舱统计数据 debug

master
PoffyZhang 1 yıl önce
ebeveyn
işleme
037b1d818b
1 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. +5
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java

+ 5
- 2
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java Dosyayı Görüntüle

@@ -588,8 +588,11 @@ public class CockpitStatsStatisticsTask {
private Integer computeLagging(List<Project> projects) {
List<String> projectCodes = projects.stream().map(Project::getProjectCode).collect(Collectors.toList());
Map<String, Project> map = projects.stream().collect(Collectors.toMap(p -> p.getProjectCode(), p -> p));
List<WflowEarlyWarningRecords> records = earlyWarningRecordsService.list(Wrappers.lambdaQuery(WflowEarlyWarningRecords.class)
.in(WflowEarlyWarningRecords::getProjectCode, projectCodes));
List<WflowEarlyWarningRecords> records = Lists.newArrayList();
if(CollUtil.isNotEmpty(projectCodes)){
records = earlyWarningRecordsService.list(Wrappers.lambdaQuery(WflowEarlyWarningRecords.class)
.in(WflowEarlyWarningRecords::getProjectCode, projectCodes));
}
return records.stream().mapToInt(r -> {
if(!map.containsKey(r.getProjectCode())){
return 0;


Yükleniyor…
İptal
Kaydet