| | |
| | | import com.yssh.entity.DictRecord; |
| | | import com.yssh.entity.SuYuan; |
| | | import com.yssh.entity.VocVals; |
| | | import com.yssh.service.DictRecordService; |
| | | import com.yssh.service.SuYuanService; |
| | | import com.yssh.service.VocValsService; |
| | | import com.yssh.service.WarningAnalyseService; |
| | | import com.yssh.service.*; |
| | | import com.yssh.utils.*; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | protected final Logger logger = LoggerFactory.getLogger(this.getClass()); |
| | | |
| | | @Resource |
| | | private VocValsService vocValsService; |
| | | VocValsService vocValsService; |
| | | |
| | | @Resource |
| | | private SuYuanService suYuanService; |
| | | SuYuanService suYuanService; |
| | | |
| | | @Resource |
| | | private CsvFilePathConfig csvFilePathConfig; |
| | | CsvFilePathConfig csvFilePathConfig; |
| | | |
| | | @Resource |
| | | private DictRecordService dictRecordService; |
| | | DictRecordService dictRecordService; |
| | | |
| | | @Resource |
| | | private WarningAnalyseService warningAnalyseService; |
| | | WarningAnalyseService warningAnalyseService; |
| | | |
| | | @Resource |
| | | XlsExportService xlsExportService; |
| | | |
| | | @Value("${csv.voc_max}") |
| | | private int vocMax = 96; |
| | |
| | | } |
| | | warningAnalyseService.warningOperationStorage(date); |
| | | } |
| | | |
| | | /** |
| | | * 创建日报:每日0时1分 |
| | | */ |
| | | @Scheduled(cron = "0 1 0 * * ?") |
| | | public void createDayReport() { |
| | | xlsExportService.createDayReport(new Date()); |
| | | } |
| | | |
| | | /** |
| | | * 创建周报:每周一0时5分 |
| | | */ |
| | | @Scheduled(cron = "0 5 0 ? * MON") |
| | | public void createWeekReport() { |
| | | xlsExportService.createWeekReport(new Date()); |
| | | } |
| | | |
| | | /** |
| | | * 创建月报:每月1日0时9分 |
| | | */ |
| | | @Scheduled(cron = "0 9 0 1 * ?") |
| | | public void createMonthReport() { |
| | | xlsExportService.createMonthReport(new Date()); |
| | | } |
| | | } |