|
|
@@ -567,7 +567,10 @@ |
|
|
left join wx_coupon_action_log cal on cal.coupon_order_id = co.id |
|
|
left join wx_coupon_action_log cal on cal.coupon_order_id = co.id |
|
|
where 1=1 |
|
|
where 1=1 |
|
|
and co.coupon_id = c.id |
|
|
and co.coupon_id = c.id |
|
|
and co.coupon_type != 5 and co.coupon_type != 7 |
|
|
|
|
|
|
|
|
and co.coupon_type != 5 |
|
|
|
|
|
and co.coupon_type != 7 |
|
|
|
|
|
and co.coupon_type != 8 |
|
|
|
|
|
and co.coupon_type != 9 |
|
|
<if test="cUserId != null"> |
|
|
<if test="cUserId != null"> |
|
|
and co.c_user_id = #{cUserId} |
|
|
and co.c_user_id = #{cUserId} |
|
|
</if> |
|
|
</if> |
|
|
|