From f024816b77a1bb486302f5468c3dc5601e589808 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Fri, 9 Aug 2024 14:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=89=E4=B9=8C=E5=85=AC=E8=B7=AF=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ningdatech/carapi/analysis/manage/AnalysisEvalDataViewManage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ningda-yw-api/src/main/java/com/ningdatech/carapi/analysis/manage/AnalysisEvalDataViewManage.java b/ningda-yw-api/src/main/java/com/ningdatech/carapi/analysis/manage/AnalysisEvalDataViewManage.java index 595a937..355ce76 100644 --- a/ningda-yw-api/src/main/java/com/ningdatech/carapi/analysis/manage/AnalysisEvalDataViewManage.java +++ b/ningda-yw-api/src/main/java/com/ningdatech/carapi/analysis/manage/AnalysisEvalDataViewManage.java @@ -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>) w -> Long.valueOf(w.get("count").toString()).intValue()); return maps.stream().map(w -> { DataChartVo vo = new DataChartVo(); vo.setLabel(w.get("groupKey").toString());