认证参数收集定时任务(飞书消息)--测试定时任务使用

This commit is contained in:
zhn
2023-04-14 11:38:30 +08:00
parent 9593973ec5
commit df14341d24
@@ -2,6 +2,9 @@ package com.jero.modules.cert.collect.task;
import com.jero.modules.cert.collect.service.IParamsCollectManifestEOService;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@@ -28,3 +31,31 @@ public class ScheduledTask {
}
//测试定时任务使用
//@Component
//@Slf4j
//public class ScheduledTask implements Job {
//
// @Autowired
// private IParamsCollectManifestEOService paramsCollectManifestEOServicea;
//
// /**
// * 监控参数收集任务的截止时间,并根据时间段发送飞书
// */
// //@Scheduled(cron = "0 30 14 * * ?")
//// @Scheduled(cron = "0 0 0 */1 * ?")
//// public void checkTime() {
//// log.info("-----checkDeadline-----begin-----------");
////
//// paramsCollectManifestEOServicea.checkDeadline();
////
//// log.info("-----checkDeadline------end-----------");
//// }
//
//
// @Override
// public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
// paramsCollectManifestEOServicea.checkDeadline();
// }
//}