Commit a21345f1 authored by suhuiguang's avatar suhuiguang

1.检验检测概览接口

parent 87f1686d
......@@ -96,8 +96,13 @@ public class DPStatisticsServiceImpl {
return Arrays.asList(BizTypeEnum.FIRST_INSPECTION, BizTypeEnum.SUPERVISE, BizTypeEnum.DETECTION);
}
private List<String> getLegendData(List<BizTypeEnum> bizTypeEnums) {
return bizTypeEnums.stream().map(BizTypeEnum::getName).collect(Collectors.toList());
private List<Map<String, Object>> getLegendData(List<BizTypeEnum> bizTypeEnums) {
return bizTypeEnums.stream().map(b->{
Map<String, Object> item = new HashMap<>();
item.put("dataKey", b.getCode());
item.put("value", b.getName());
return item;
}).collect(Collectors.toList());
}
private void setDefaultFilter(DPFilterParamDto dpFilterParamDto) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment