From 142bcc9b22f48a8a2098a66b2964fe10c97c6fe8 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期二, 20 五月 2025 11:19:49 +0800
Subject: [PATCH] git ch

---
 server/platform/src/main/java/com/doumee/task/ScheduleTool.java |   80 ++++++++++++++++++++++++++++++++++++++--
 1 files changed, 76 insertions(+), 4 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 92e1799..081395c 100644
--- a/server/platform/src/main/java/com/doumee/task/ScheduleTool.java
+++ b/server/platform/src/main/java/com/doumee/task/ScheduleTool.java
@@ -1,6 +1,11 @@
 package com.doumee.task;
 
 
+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;
 import org.springframework.scheduling.annotation.Scheduled;
@@ -14,16 +19,83 @@
  */
 @Component
 @EnableScheduling
+@Slf4j
 public class ScheduleTool {
+    @Autowired
+    private CompanyService companyService;
+
+    @Autowired
+    private InsuranceApplyService insuranceApplyService;
+
+    @Autowired
+    private UnionApplyService unionApplyService;
 
 
     /**
-     * 瀹氭椂澶勭悊鐖櫕婧愭暟鎹紝鐢熸垚绱犳潗搴撴暟鎹�
      * @throws Exception
      */
-    @Scheduled(fixedDelay=30*60*1000,initialDelay = 30000)
-    public void dealOploadEvent() throws Exception {
-
+    @Scheduled(fixedDelay= 60*1000,initialDelay = 30000)
+    public void startSignAuthAuto() throws Exception {
+        log.info("==============瀹氭椂娉ㄥ唽浼佷笟鍚涘瓙绛捐处鍙�=======start======");
+        companyService.startSignAuthAuto();
+        log.info("==============瀹氭椂娉ㄥ唽浼佷笟鍚涘瓙绛捐处鍙�======end=======");
     }
+    /**
+     * @throws Exception
+     */
+    @Scheduled(fixedDelay= 60*1000,initialDelay = 30000)
+    public void dealComSignAuthStatus() throws Exception {
+        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
+     */
+    @Scheduled(fixedDelay= 60*1000,initialDelay = 30000)
+    public void dealComSigIdStatus() throws Exception {
+        log.info("==============瀹氭椂涓婁紶寰呬笂浼犵殑浼佷笟鐢靛瓙鍗扮珷鏁版嵁=======start======");
+        companyService.dealSignIdStatus();
+        log.info("==============瀹氭椂涓婁紶寰呬笂浼犵殑浼佷笟鐢靛瓙鍗扮珷鏁版嵁======end=======");
+    }
+
+
+    /**
+     * 瀹氭椂鏇存柊淇濆崟閲戦 姣忓ぉ鍑屾櫒 12.05 鍒嗘墽琛�
+     * @throws Exception
+     */
+    @Scheduled(cron = "0 5 00 * * ?")
+    public void updateApplyCurrentFee(){
+        log.info("==============瀹氭椂鏇存柊淇濆崟瀹為檯閲戦=======start======");
+        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