|
|
@@ -397,6 +397,7 @@ |
|
|
left join wx_merchant_b_user bu on co.b_user_id = bu.id |
|
|
left join wx_merchant_b_user bu on co.b_user_id = bu.id |
|
|
left join wx_merchant m on m.id = bu.merchant_id |
|
|
left join wx_merchant m on m.id = bu.merchant_id |
|
|
where co.id = #{id} |
|
|
where co.id = #{id} |
|
|
|
|
|
and co.coupon_type < 7 |
|
|
and c.id = co.coupon_id |
|
|
and c.id = co.coupon_id |
|
|
and cu.id = co.c_user_id |
|
|
and cu.id = co.c_user_id |
|
|
</select> |
|
|
</select> |
|
|
|