Przeglądaj źródła

bug

release_toaliyun_real
xhxu 5 lat temu
rodzic
commit
2884338025
1 zmienionych plików z 6 dodań i 2 usunięć
  1. +6
    -2
      mallinkService/src/main/resources/mapper/WxCouponMapper.xml

+ 6
- 2
mallinkService/src/main/resources/mapper/WxCouponMapper.xml Wyświetl plik

@@ -791,7 +791,9 @@
left join (<foreach collection="tenantEntitys" item="tenantEntity" index="index" separator="union all">
SELECT * from wx_coupon${tenantEntity.shardTableSuffix}
</foreach>) wc on wc.id = ci.coupon_id
left join wx_merchant_subsidy sc on sc.coupon_order_id = ci.id
left join (<foreach collection="tenantEntitys" item="tenantEntity" index="index" separator="union all">
SELECT * from wx_merchant_subsidy${tenantEntity.shardTableSuffix}
</foreach>) sc on sc.coupon_order_id = ci.id
where wc.id = c.id) as sum_subsidy

from (<foreach collection="tenantEntitys" item="tenantEntity" index="index" separator="union all">
@@ -840,7 +842,9 @@
left join (<foreach collection="tenantEntitys" item="tenantEntity" index="index" separator="union all">
SELECT * from wx_coupon_order${tenantEntity.shardTableSuffix}
</foreach>) wo on wo.coupon_id = wc.id
left join wx_merchant_subsidy sc on sc.coupon_order_id = wo.id
left join (<foreach collection="tenantEntitys" item="tenantEntity" index="index" separator="union all">
SELECT * from wx_merchant_subsidy${tenantEntity.shardTableSuffix}
</foreach>) sc on sc.coupon_order_id = wo.id
where wc.id = c.id) as sum_subsidy
from (<foreach collection="tenantEntitys" item="tenantEntity" index="index" separator="union all">
SELECT * from wx_coupon${tenantEntity.shardTableSuffix}


Ładowanie…
Anuluj
Zapisz