From 2ac48346310026aca3a21a796f12106ae761c636 Mon Sep 17 00:00:00 2001 From: xhxu Date: Fri, 27 Nov 2020 12:41:53 +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 0adaf3278..8798e341f 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml @@ -840,7 +840,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}