Browse Source

修改定时任务执行策略为 fixedDelay

lvjian 4 tháng trước cách đây
mục cha
commit
1e236881a6

+ 1 - 1
src/main/java/com/emato/cuspay/task/CuspayTask.java

@@ -28,7 +28,7 @@ public class CuspayTask {
     @Autowired
     @Autowired
     private WxHeavyPushCusDeclareBiz wxHeavyPushCusDeclareBiz;
     private WxHeavyPushCusDeclareBiz wxHeavyPushCusDeclareBiz;
 
 
-    @Scheduled(fixedRate = 10000)
+    @Scheduled(fixedDelay = 10000)
     public void task() {
     public void task() {
         //支付海关报关
         //支付海关报关
         wxCusDeclareBiz.biz();
         wxCusDeclareBiz.biz();