认证参数收集定时任务(飞书消息)--测试定时任务使用
This commit is contained in:
+31
@@ -2,6 +2,9 @@ package com.jero.modules.cert.collect.task;
|
|||||||
|
|
||||||
import com.jero.modules.cert.collect.service.IParamsCollectManifestEOService;
|
import com.jero.modules.cert.collect.service.IParamsCollectManifestEOService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
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.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.scheduling.annotation.Scheduled;
|
||||||
import org.springframework.stereotype.Component;
|
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();
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|||||||
Reference in New Issue
Block a user