From 2884338025eec5784f35a879b5215616d3ddf9c4 Mon Sep 17 00:00:00 2001 From: xhxu Date: Fri, 27 Nov 2020 13:41:13 +0800 Subject: [PATCH] bug --- .../src/main/resources/mapper/WxCouponMapper.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml index 0adaf3278..3eb6c2c9c 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml @@ -791,7 +791,9 @@ left join ( SELECT * from wx_coupon${tenantEntity.shardTableSuffix} ) wc on wc.id = ci.coupon_id - left join wx_merchant_subsidy sc on sc.coupon_order_id = ci.id + left join ( + SELECT * from wx_merchant_subsidy${tenantEntity.shardTableSuffix} + ) sc on sc.coupon_order_id = ci.id where wc.id = c.id) as sum_subsidy from ( @@ -840,7 +842,9 @@ left join ( SELECT * from wx_coupon_order${tenantEntity.shardTableSuffix} ) wo on wo.coupon_id = wc.id - left join wx_merchant_subsidy sc on sc.coupon_order_id = wo.id + left join ( + SELECT * from wx_merchant_subsidy${tenantEntity.shardTableSuffix} + ) sc on sc.coupon_order_id = wo.id where wc.id = c.id) as sum_subsidy from ( SELECT * from wx_coupon${tenantEntity.shardTableSuffix}