From c21d5551744f8f55aa44157c17985243670bec24 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 26 一月 2024 13:56:53 +0800
Subject: [PATCH] 111
---
server/platform/src/main/java/com/doumee/task/ScheduleTool.java | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 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 401b57e..06d04c0 100644
--- a/server/platform/src/main/java/com/doumee/task/ScheduleTool.java
+++ b/server/platform/src/main/java/com/doumee/task/ScheduleTool.java
@@ -1,7 +1,9 @@
package com.doumee.task;
+import com.doumee.dao.business.model.InsuranceApply;
import com.doumee.service.business.CompanyService;
+import com.doumee.service.business.InsuranceApplyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
@@ -20,6 +22,20 @@
public class ScheduleTool {
@Autowired
private CompanyService companyService;
+
+ @Autowired
+ private InsuranceApplyService insuranceApplyService;
+
+
+ /**
+ * @throws Exception
+ */
+ @Scheduled(fixedDelay= 60*1000,initialDelay = 30000)
+ public void startSignAuthAuto() throws Exception {
+ log.info("==============瀹氭椂娉ㄥ唽浼佷笟鍚涘瓙绛捐处鍙�=======start======");
+ companyService.startSignAuthAuto();
+ log.info("==============瀹氭椂娉ㄥ唽浼佷笟鍚涘瓙绛捐处鍙�======end=======");
+ }
/**
* @throws Exception
*/
@@ -32,6 +48,15 @@
/**
* @throws Exception
*/
+ @Scheduled(fixedDelay= 60*1000*60,initialDelay = 30000)
+ public void deal() throws Exception {
+ log.info("==============瀹氭椂鏌ヨ浼佷笟鐢靛瓙绛剧缃茬姸鎬�=======start======");
+ insuranceApplyService.dealWaitSignedData();
+ log.info("==============瀹氭椂鏌ヨ浼佷笟鐢靛瓙绛剧缃茬姸鎬�======end=======");
+ }
+ /**
+ * @throws Exception
+ */
@Scheduled(fixedDelay= 60*1000,initialDelay = 30000)
public void dealComSigIdStatus() throws Exception {
log.info("==============瀹氭椂涓婁紶寰呬笂浼犵殑浼佷笟鐢靛瓙鍗扮珷鏁版嵁=======start======");
@@ -39,4 +64,17 @@
log.info("==============瀹氭椂涓婁紶寰呬笂浼犵殑浼佷笟鐢靛瓙鍗扮珷鏁版嵁======end=======");
}
+
+ /**
+ * 瀹氭椂鏇存柊淇濆崟閲戦 姣忓ぉ鍑屾櫒 12.05 鍒嗘墽琛�
+ * @throws Exception
+ */
+ @Scheduled(cron = "0 5 00 * * ?")
+ public void updateApplyCurrentFee(){
+ log.info("==============瀹氭椂鏇存柊淇濆崟瀹為檯閲戦=======start======");
+ insuranceApplyService.updateApplyCurrentFee();
+ log.info("==============瀹氭椂鏇存柊淇濆崟瀹為檯閲戦======end=======");
+ }
+
+
}
--
Gitblit v1.9.3