燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-08-09 b62a18196dc7ede82d17a51fe1f0973c7b0983ab
src/main/java/com/yssh/config/ScheduleConfig.java
@@ -10,10 +10,7 @@
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;
@@ -32,19 +29,22 @@
   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;
@@ -188,4 +188,28 @@
      }
      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());
   }
}