|
@@ -54,6 +54,23 @@ public class StatisticsController {
|
|
|
public BaseResponse exportSystemApplyCount(HttpServletResponse response,
|
|
|
@RequestParam(value = "startDate", required = false) Date startDate,
|
|
|
@RequestParam(value = "endDate", required = false) Date endDate) throws Exception {
|
|
|
+ if (startDate != null) {
|
|
|
+ Calendar startCal = Calendar.getInstance();
|
|
|
+ startCal.setTime(startDate);
|
|
|
+ startCal.set(Calendar.HOUR_OF_DAY, 0);
|
|
|
+ startCal.set(Calendar.MINUTE, 0);
|
|
|
+ startCal.set(Calendar.SECOND, 0);
|
|
|
+ startDate = startCal.getTime();
|
|
|
+ }
|
|
|
+
|
|
|
+ if (endDate != null) {
|
|
|
+ Calendar endCal = Calendar.getInstance();
|
|
|
+ endCal.setTime(endDate);
|
|
|
+ endCal.set(Calendar.HOUR_OF_DAY, 23);
|
|
|
+ endCal.set(Calendar.MINUTE, 59);
|
|
|
+ endCal.set(Calendar.SECOND, 59);
|
|
|
+ endDate = endCal.getTime();
|
|
|
+ }
|
|
|
List<SystemDataCount> systemDataCount = statisticsService.findSystemDataCount(startDate, endDate);
|
|
|
ExcelHelper.ExcelData data = excelHelper.new ExcelData();
|
|
|
Map<String, CellRangeAddress> titleMap = new HashMap<>();
|