‘linchangsheng’ 2 周之前
父節點
當前提交
8a5a43120f
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      mall-server-api/src/main/java/com/gree/mall/manager/schedule/OrderBaseSchedule.java

+ 13 - 0
mall-server-api/src/main/java/com/gree/mall/manager/schedule/OrderBaseSchedule.java

@@ -92,6 +92,19 @@ public class OrderBaseSchedule {
     }
 
     @Transactional
+    @Scheduled(cron = "0 30 17 * * ?")
+    //  @Scheduled(fixedDelay = 60  * 1000)
+    public void fenzhang2() throws WxPayException {
+        List<SettlementOrder> settlementOrders = settlementOrderService.lambdaQuery().in(SettlementOrder::getStatus, "WAIT").list();
+
+        for (SettlementOrder settlementOrder : settlementOrders) {
+            wechatLogic.shareSettlementAmountCorn(settlementOrder);
+        }
+
+    }
+
+
+    @Transactional
     @Scheduled(fixedDelay = 60  * 1000)
     public synchronized void fenzhangQingKuang() throws WxPayException {