|
|
@ -59,9 +59,7 @@ public class DfYhRecordService extends DefaultApprovalBusinessService<DfYhRecord |
|
|
|
.collect(Collectors.groupingBy(DfYhStatisticsModelDto::getAdcd)); |
|
|
|
|
|
|
|
List<String> xList =new ArrayList<>(); |
|
|
|
DfYhCharInfoDto.YAxis yAxisInfo=new DfYhCharInfoDto.YAxis(); |
|
|
|
yAxisInfo.setName("次数"); |
|
|
|
yAxisInfo.setUnit("个"); |
|
|
|
List<DfYhCharInfoDto.YAxis>yAxisList=new ArrayList<>(); |
|
|
|
for (Map.Entry<String, List<DfYhStatisticsModelDto>> entry : groupingByList.entrySet()) { |
|
|
|
// 设置 x轴
|
|
|
|
xList.add(entry.getKey()); |
|
|
@ -73,8 +71,13 @@ public class DfYhRecordService extends DefaultApprovalBusinessService<DfYhRecord |
|
|
|
seriesList.add(series); |
|
|
|
} |
|
|
|
// 设置 y轴
|
|
|
|
DfYhCharInfoDto.YAxis yAxisInfo=new DfYhCharInfoDto.YAxis(); |
|
|
|
yAxisInfo.setName("次数"); |
|
|
|
yAxisInfo.setUnit("个"); |
|
|
|
yAxisInfo.setSeries(seriesList); |
|
|
|
} |
|
|
|
dtoInfo.setYAxis(yAxisList); |
|
|
|
dtoInfo.setXAxis(xList); |
|
|
|
return dtoInfo; |
|
|
|
} |
|
|
|
|
|
|
|