|
|
@@ -97,23 +97,24 @@ public class StatisticsDataController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 导出统计数据
|
|
|
+ * 导出订单统计数据
|
|
|
*/
|
|
|
@GetMapping("/export")
|
|
|
@SaCheckPermission("statics:export")
|
|
|
public void exportStatisticsData(Integer type, Long startTime, Long endTime, HttpServletResponse response) {
|
|
|
List<ExcelSheetAndData> excelSheetDataList = statisticsDataService.exportStatisticsDataByType(type, startTime, endTime);
|
|
|
- EasyExcelUtils.createExcelStreamMutilByEasyExcel(response, excelSheetDataList, "统计数据", ExcelTypeEnum.XLSX, null);
|
|
|
+ excelSheetDataList = excelSheetDataList.stream().sorted(Comparator.comparing(ExcelSheetAndData::getSort)).collect(Collectors.toList());
|
|
|
+ EasyExcelUtils.createExcelStreamMutilByEasyExcel(response, excelSheetDataList, "订单统计数据", ExcelTypeEnum.XLSX, null);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 每月数据导出
|
|
|
+ * 每月业务数据导出
|
|
|
*/
|
|
|
@GetMapping("/export/monthly/data")
|
|
|
public void exportMonthlyData(Long startTime, Long endTime, HttpServletResponse response) {
|
|
|
List<ExcelSheetAndData> excelSheetDataList = statisticsDataService.exportMonthlyData(startTime, endTime);
|
|
|
excelSheetDataList = excelSheetDataList.stream().sorted(Comparator.comparing(ExcelSheetAndData::getSort)).collect(Collectors.toList());
|
|
|
- EasyExcelUtils.createExcelStreamMutilByEasyExcel(response, excelSheetDataList, String.format("%s月订单数据", DateUtil.month(DateTime.of(startTime)) + 1), ExcelTypeEnum.XLSX, null);
|
|
|
+ EasyExcelUtils.createExcelStreamMutilByEasyExcel(response, excelSheetDataList, String.format("%s月业务数据", DateUtil.month(DateTime.of(startTime)) + 1), ExcelTypeEnum.XLSX, null);
|
|
|
}
|
|
|
|
|
|
/**
|