| | |
| | | WarningAnalyseService warningAnalyseService; |
| | | |
| | | @Resource |
| | | XlsExportService xlsExportService; |
| | | XlsReportService xlsReportService; |
| | | |
| | | @Value("${csv.voc_max}") |
| | | private int vocMax = 96; |
| | |
| | | */ |
| | | @Scheduled(cron = "0 1 0 * * ?") |
| | | public void createDayReport() { |
| | | xlsExportService.createDayReport(new Date()); |
| | | xlsReportService.createDayReport(new Date()); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Scheduled(cron = "0 5 0 ? * MON") |
| | | public void createWeekReport() { |
| | | xlsExportService.createWeekReport(new Date()); |
| | | xlsReportService.createWeekReport(new Date()); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Scheduled(cron = "0 9 0 1 * ?") |
| | | public void createMonthReport() { |
| | | xlsExportService.createMonthReport(new Date()); |
| | | xlsReportService.createMonthReport(new Date()); |
| | | } |
| | | } |