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