diff --git a/src/main/java/cn/com/tenlion/operator/util/task/WxPayResultCheckTask.java b/src/main/java/cn/com/tenlion/operator/util/task/WxPayResultCheckTask.java index c428887..41df359 100644 --- a/src/main/java/cn/com/tenlion/operator/util/task/WxPayResultCheckTask.java +++ b/src/main/java/cn/com/tenlion/operator/util/task/WxPayResultCheckTask.java @@ -27,7 +27,7 @@ public class WxPayResultCheckTask { iAccountRechargeStaticService = this.iAccountRechargeService; } - @Scheduled(fixedRate = 60*1000*2) + @Scheduled(fixedDelay = 60*1000*2) public void close() { // 关闭10分钟之前(未到账)的订单 List list = iAccountRechargeStaticService.getNotCloseRechargeList("微信"); @@ -68,7 +68,7 @@ public class WxPayResultCheckTask { /** * 2分钟执行一次 */ - @Scheduled(fixedRate = 60*1000*2) + @Scheduled(fixedDelay = 60*1000*2) public void getStatus() { // 查出来近10分钟(未到账)的订单 List list = iAccountRechargeStaticService.getNotCheckRechargeList("微信");