Kaynağa Gözat

义乌公路 初始化项目

master-new
PoffyZhang 3 ay önce
ebeveyn
işleme
f024816b77
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. +2
    -1
      ningda-yw-api/src/main/java/com/ningdatech/carapi/analysis/manage/AnalysisEvalDataViewManage.java

+ 2
- 1
ningda-yw-api/src/main/java/com/ningdatech/carapi/analysis/manage/AnalysisEvalDataViewManage.java Dosyayı Görüntüle

@@ -24,6 +24,7 @@ import org.springframework.stereotype.Component;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.*;
import java.util.function.ToIntFunction;
import java.util.stream.Collectors;

/**
@@ -56,7 +57,7 @@ public class AnalysisEvalDataViewManage {
if (maps.isEmpty()) {
return Collections.emptyList();
}
int total = CollUtils.sum(maps, w -> Long.valueOf(w.get("count").toString()).intValue());
int total = CollUtils.sum(maps, (ToIntFunction<Map<String, Object>>) w -> Long.valueOf(w.get("count").toString()).intValue());
return maps.stream().map(w -> {
DataChartVo vo = new DataChartVo();
vo.setLabel(w.get("groupKey").toString());


Yükleniyor…
İptal
Kaydet