|
|
@@ -1017,7 +1017,7 @@ |
|
|
left join wx_coupon_merchant wcm on co.coupon_id = wcm.product_id and wcm.merchant_id = #{merchantId} |
|
|
left join wx_coupon_merchant wcm on co.coupon_id = wcm.product_id and wcm.merchant_id = #{merchantId} |
|
|
LEFT JOIN wx_c_user_basic_info cu ON cu.id=co.c_user_id |
|
|
LEFT JOIN wx_c_user_basic_info cu ON cu.id=co.c_user_id |
|
|
LEFT JOIN wx_coupon c ON c.id = co.coupon_id |
|
|
LEFT JOIN wx_coupon c ON c.id = co.coupon_id |
|
|
where 1=1 |
|
|
|
|
|
|
|
|
where wcm.merchant_id = #{merchantId} |
|
|
<choose> |
|
|
<choose> |
|
|
<when test=" null != couponType"> |
|
|
<when test=" null != couponType"> |
|
|
and co.coupon_type = #{couponType} |
|
|
and co.coupon_type = #{couponType} |
|
|
|