diff --git a/mallinkService/src/main/resources/mapper/WxMerchantMapper.xml b/mallinkService/src/main/resources/mapper/WxMerchantMapper.xml index e6234698e..504a46592 100644 --- a/mallinkService/src/main/resources/mapper/WxMerchantMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxMerchantMapper.xml @@ -433,7 +433,7 @@ count(DISTINCT co.c_user_id) AS consumeCount,sum(co.coupon_price) AS tradeAmt, m.id as merchant_id from wx_coupon_order co left join (select m.id,mbu.id as b_user_id from wx_merchant m - left join wx_merchant_b_user mbu on m.id=mbu.merchant_id where status=0) m + left join wx_merchant_b_user mbu on m.id=mbu.merchant_id where mbu.status=0) m on co.b_user_id=m.b_user_id WHERE co.coupon_order_status = 1