xhxu пре 5 година
родитељ
комит
4bb8cb4def
1 измењених фајлова са 3 додато и 1 уклоњено
  1. +3
    -1
      mallinkService/src/main/resources/mapper/WxCouponMapper.xml

+ 3
- 1
mallinkService/src/main/resources/mapper/WxCouponMapper.xml Прегледај датотеку

@@ -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">


Loading…
Откажи
Сачувај