Kaynağa Gözat

fix

release_toaliyun_real
winter 1 yıl önce
ebeveyn
işleme
39226f28b2
2 değiştirilmiş dosya ile 7 ekleme ve 4 silme
  1. +5
    -2
      mallinkSchedule/src/main/java/com/iformall/schedule/AiOrderSchedule.java
  2. +2
    -2
      mallinkService/src/main/resources/mapper/AiOrderMapper.xml

+ 5
- 2
mallinkSchedule/src/main/java/com/iformall/schedule/AiOrderSchedule.java Dosyayı Görüntüle

@@ -64,13 +64,16 @@ public class AiOrderSchedule {
private List<WxMall> getMalls() {
WxMall wxMall = new WxMall();
wxMall.setTenantId("789");
return wxMallMapper.findList(wxMall);
}

//查询新创建的订单,增量同步wxCouponOrder.因为中间有些订单有付了款,有没付款
@Async
@Scheduled(cron = "0 50 0 * * ?") // 每天凌晨00:50
//@Scheduled(cron = "0 */5 * * * ?") // 每天凌晨00:50
@Scheduled(cron = "0 53 0 * * *?")// 每天凌晨00:53
public void updateWxCouponOrderSchedule() {
System.out.println(">>>>> updateWxCouponOrderSchedule");
List<WxMall> malls = getMalls();
for (WxMall mall : malls) {
@@ -126,7 +129,7 @@ public class AiOrderSchedule {
//更新coupon_order_status==0或者为空的订单, 因为订单可能被核销等操作会变更一些数据
@Async
@Scheduled(cron = "0 0 0/2 * * ?") // 每2个小时执行一次
@Scheduled(cron = "0 0 */2 * * ?") // 每2个小时执行一次
public void updateOrderSchedule() {
List<WxMall> malls = getMalls();
for (WxMall mall : malls) {


+ 2
- 2
mallinkService/src/main/resources/mapper/AiOrderMapper.xml Dosyayı Görüntüle

@@ -83,10 +83,10 @@
</if>
<if test=" null != noCouponOrder ">
and `coupon_order_id` is null
and (`coupon_order_id` is null or coupon_order_id = 0 )
</if>
<if test=" null != hasCouponOrder ">
and `coupon_order_id` is not null
and (`coupon_order_id` is not null and coupon_order_id &gt; 0)
</if>
<if test=" null != noCouponOrderStatus ">
and `coupon_order_status` is null


Yükleniyor…
İptal
Kaydet