From 94edf7b79cced9d37f880b95301afb5513fad06d Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 25 六月 2025 15:24:36 +0800
Subject: [PATCH] 提交一把订单

---
 server/platform/src/main/java/com/doumee/task/ScheduleTool.java |   29 +++++++++++++++++++++++++----
 1 files changed, 25 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 2967f11..f9444af 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;
@@ -16,8 +17,8 @@
  * @date 2021-10-10 14:40:35
  * https://www.bejson.com/othertools/cron/  cron 琛ㄨ揪寮忕敓鎴愬湴鍧�
  */
-@Component
-@EnableScheduling
+//@Component
+//@EnableScheduling
 @Slf4j
 public class ScheduleTool {
     @Autowired
@@ -25,6 +26,9 @@
 
     @Autowired
     private InsuranceApplyService insuranceApplyService;
+
+    @Autowired
+    private UnionApplyService unionApplyService;
 
 
     /**
@@ -48,7 +52,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();
@@ -72,8 +76,25 @@
     @Scheduled(cron = "0 5 00 * * ?")
     public void updateApplyCurrentFee(){
         log.info("==============瀹氭椂鏇存柊淇濆崟瀹為檯閲戦=======start======");
-        insuranceApplyService.updateApplyCurrentFee(null);
+        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