| | |
| | | <if test="userPhone != null and userPhone !=''"> |
| | | and u.phone like CONCAT('%',#{userPhone},'%') |
| | | </if> |
| | | <if test="couponActivityId != null and couponActivityId !=''"> |
| | | <if test="couponActivityId != null"> |
| | | and c.couponActivityId=#{couponActivityId} |
| | | </if> |
| | | <if test="state != null and state !=''"> |
| | |
| | | FROM |
| | | t_user_coupon_record r |
| | | WHERE |
| | | r.activityType = 4 AND r.couponUseType=3 |
| | | r.activityType = 4 AND r.couponUseType=4 |
| | | <if test="beginTime != null and beginTime !='' and endTime != null and endTime != ''"> |
| | | and (r.insertTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59')) |
| | | </if> |