From 378b39242704329529850b0cf6b311fad1bca875 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Tue, 19 Dec 2023 10:00:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/hfkj/schedule/MerLedgerSchedule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/schedule/src/main/java/com/hfkj/schedule/MerLedgerSchedule.java b/schedule/src/main/java/com/hfkj/schedule/MerLedgerSchedule.java index 291c218..d19735c 100644 --- a/schedule/src/main/java/com/hfkj/schedule/MerLedgerSchedule.java +++ b/schedule/src/main/java/com/hfkj/schedule/MerLedgerSchedule.java @@ -8,6 +8,7 @@ import com.hfkj.sysenum.*; import lombok.SneakyThrows; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.Scheduled; import javax.annotation.Resource; @@ -20,6 +21,7 @@ import java.util.Map; * @author: HuRui * @date: 2023/9/25 **/ +@Configuration public class MerLedgerSchedule { private static final Logger log = LoggerFactory.getLogger(MerLedgerSchedule.class); @@ -32,7 +34,6 @@ public class MerLedgerSchedule { /** * 审批状态查询 */ - @SneakyThrows @Scheduled(cron="0 0/1 * * * ?") //每1分钟执行一次 public void merLedgerApplyment() { Map param = new HashMap<>();