src/main/java/com/yssh/config/InitConfig.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/yssh/config/ScheduleConfig.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/yssh/service/XlsReportService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/yssh/config/InitConfig.java
@@ -1,7 +1,7 @@ package com.yssh.config; import com.yssh.service.WarningAnalyseService; import com.yssh.service.XlsExportService; import com.yssh.service.XlsReportService; import com.yssh.utils.CacheUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -35,7 +35,7 @@ ScheduleConfig task; @Resource XlsExportService xlsService; XlsReportService xlsReportService; @Override public void run(ApplicationArguments args) throws Exception { @@ -47,9 +47,9 @@ // 璇诲彇dat鏁版嵁 commonService.readDatData(); // xlsService.createDayReport(); // xlsService.createWeekReport(); // xlsService.createMonthReport(); // xlsReportService.createDayReport(); // xlsReportService.createWeekReport(); // xlsReportService.createMonthReport(); //test(); logger.info("***************** 绯荤粺鍚姩瀹屾瘯 *****************" + "\n"); src/main/java/com/yssh/config/ScheduleConfig.java
@@ -44,7 +44,7 @@ WarningAnalyseService warningAnalyseService; @Resource XlsExportService xlsExportService; XlsReportService xlsReportService; @Value("${csv.voc_max}") private int vocMax = 96; @@ -194,7 +194,7 @@ */ @Scheduled(cron = "0 1 0 * * ?") public void createDayReport() { xlsExportService.createDayReport(new Date()); xlsReportService.createDayReport(new Date()); } /** @@ -202,7 +202,7 @@ */ @Scheduled(cron = "0 5 0 ? * MON") public void createWeekReport() { xlsExportService.createWeekReport(new Date()); xlsReportService.createWeekReport(new Date()); } /** @@ -210,6 +210,6 @@ */ @Scheduled(cron = "0 9 0 1 * ?") public void createMonthReport() { xlsExportService.createMonthReport(new Date()); xlsReportService.createMonthReport(new Date()); } } src/main/java/com/yssh/service/XlsReportService.java
文件名从 src/main/java/com/yssh/service/XlsExportService.java 修改 @@ -21,7 +21,7 @@ * @author 2023-08-05 */ @Service public class XlsExportService { public class XlsReportService { protected final Logger logger = LoggerFactory.getLogger(this.getClass()); @Value("${report.path}")