|
|
|
@@ -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 |
|
|
|
<if test="tenantId != null"> |
|
|
|
|