From c7a022c304c49fa91da1ebae458ccec3c484718a Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期一, 04 三月 2024 10:30:11 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- server/platform/src/main/java/com/doumee/task/ScheduleTool.java | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/server/platform/src/main/java/com/doumee/task/ScheduleTool.java b/server/platform/src/main/java/com/doumee/task/ScheduleTool.java index 2967f11..270fced 100644 --- a/server/platform/src/main/java/com/doumee/task/ScheduleTool.java +++ b/server/platform/src/main/java/com/doumee/task/ScheduleTool.java @@ -16,8 +16,8 @@ * @date 2021-10-10 14:40:35 * https://www.bejson.com/othertools/cron/ cron 琛ㄨ揪寮忕敓鎴愬湴鍧� */ -@Component -@EnableScheduling +//@Component +//@EnableScheduling @Slf4j public class ScheduleTool { @Autowired @@ -48,7 +48,7 @@ /** * @throws Exception */ - @Scheduled(fixedDelay= 60*1000*60,initialDelay = 30000) + @Scheduled(fixedDelay= 60*1000*2 ,initialDelay = 30000) public void deal() throws Exception { log.info("==============瀹氭椂鏌ヨ浼佷笟鐢靛瓙绛剧缃茬姸鎬�=======start======"); insuranceApplyService.dealWaitSignedData(); @@ -77,4 +77,17 @@ } + + /** + * 瀹氭椂鏇存柊鐢熸垚缁繚鎻愰啋 + * @throws Exception + */ + @Scheduled(cron = "0 1 00 * * ?") + public void generateNotice(){ + log.info("==============瀹氭椂鏇存柊鐢熸垚缁繚鎻愰啋=======start======"); + insuranceApplyService.generateNotice(); + log.info("==============瀹氭椂鏇存柊鐢熸垚缁繚鎻愰啋======end======="); + } + + } -- Gitblit v1.9.3