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 (