From ad5c2bf44c99d299cbb5b8182675aec514d55a57 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 20 六月 2024 15:38:37 +0800
Subject: [PATCH] 提交一把
---
server/platform/src/main/java/com/doumee/task/ScheduleTool.java | 41 ++++++++++++++++++++++++++++++++++++++++-
1 files changed, 40 insertions(+), 1 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 075cf61..081395c 100644
--- a/server/platform/src/main/java/com/doumee/task/ScheduleTool.java
+++ b/server/platform/src/main/java/com/doumee/task/ScheduleTool.java
@@ -4,6 +4,7 @@
import com.doumee.dao.business.model.InsuranceApply;
import com.doumee.service.business.CompanyService;
import com.doumee.service.business.InsuranceApplyService;
+import com.doumee.service.business.UnionApplyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
@@ -26,7 +27,19 @@
@Autowired
private InsuranceApplyService insuranceApplyService;
+ @Autowired
+ private UnionApplyService unionApplyService;
+
+ /**
+ * @throws Exception
+ */
+ @Scheduled(fixedDelay= 60*1000,initialDelay = 30000)
+ public void startSignAuthAuto() throws Exception {
+ log.info("==============瀹氭椂娉ㄥ唽浼佷笟鍚涘瓙绛捐处鍙�=======start======");
+ companyService.startSignAuthAuto();
+ log.info("==============瀹氭椂娉ㄥ唽浼佷笟鍚涘瓙绛捐处鍙�======end=======");
+ }
/**
* @throws Exception
*/
@@ -35,6 +48,15 @@
log.info("==============瀹氭椂鏌ヨ浼佷笟鐢靛瓙绛捐璇佺姸鎬�=======start======");
companyService.dealSignAuthStatus();
log.info("==============瀹氭椂鏌ヨ浼佷笟鐢靛瓙绛捐璇佺姸鎬�======end=======");
+ }
+ /**
+ * @throws Exception
+ */
+ @Scheduled(fixedDelay= 60*1000*2 ,initialDelay = 30000)
+ public void deal() throws Exception {
+ log.info("==============瀹氭椂鏌ヨ浼佷笟鐢靛瓙绛剧缃茬姸鎬�=======start======");
+ insuranceApplyService.dealWaitSignedData();
+ log.info("==============瀹氭椂鏌ヨ浼佷笟鐢靛瓙绛剧缃茬姸鎬�======end=======");
}
/**
* @throws Exception
@@ -54,8 +76,25 @@
@Scheduled(cron = "0 5 00 * * ?")
public void updateApplyCurrentFee(){
log.info("==============瀹氭椂鏇存柊淇濆崟瀹為檯閲戦=======start======");
- insuranceApplyService.updateApplyCurrentFee();
+ insuranceApplyService.updateApplyCurrentFee(null,null);
log.info("==============瀹氭椂鏇存柊淇濆崟瀹為檯閲戦======end=======");
+
+ log.info("==============瀹氭椂鏇存柊鍚堝苟鍗曞疄闄呴噾棰�=======start======");
+ unionApplyService.updateUnionApplyCurrentFee(null);
+ log.info("==============瀹氭椂鏇存柊鍚堝苟鍗曞疄闄呴噾棰�======end=======");
+ }
+
+
+
+ /**
+ * 瀹氭椂鏇存柊鐢熸垚缁繚鎻愰啋
+ * @throws Exception
+ */
+ @Scheduled(cron = "0 1 00 * * ?")
+ public void generateNotice(){
+ log.info("==============瀹氭椂鏇存柊鐢熸垚缁繚鎻愰啋=======start======");
+ insuranceApplyService.generateNotice();
+ log.info("==============瀹氭椂鏇存柊鐢熸垚缁繚鎻愰啋======end=======");
}
--
Gitblit v1.9.3