Browse Source

义乌公路 初始化项目

master-new
PoffyZhang 3 months ago
parent
commit
f024816b77
1 changed files with 2 additions and 1 deletions
  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 View File

@@ -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());


Loading…
Cancel
Save