From 50fb58286ed3b718c39a97e0987ee7561a295651 Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期五, 04 七月 2025 17:56:41 +0800 Subject: [PATCH] git ch --- server/platform/src/main/java/com/doumee/task/ScheduleTool.java | 23 ++++++++++++++++++++++- 1 files changed, 22 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 ba0fe87..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; @@ -25,6 +26,9 @@ @Autowired private InsuranceApplyService insuranceApplyService; + + @Autowired + private UnionApplyService unionApplyService; /** @@ -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