From 4bb8cb4def8f0b9108022af495b2bfdc6beaa2f8 Mon Sep 17 00:00:00 2001 From: xhxu Date: Fri, 27 Nov 2020 12:51:21 +0800 Subject: [PATCH] bug --- mallinkService/src/main/resources/mapper/WxCouponMapper.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml index 8798e341f..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 (