| | |
| | | </select> |
| | | |
| | | <select id="getPage" resultType="com.mzl.flower.dto.response.coupon.CouponRecordVO"> |
| | | <include refid="QuerySql"></include> |
| | | <include refid="QuerySql"/> |
| | | </select> |
| | | <select id="getList" resultType="com.mzl.flower.dto.response.coupon.CouponRecordVO"> |
| | | <include refid="QuerySql"></include> |
| | | <include refid="QuerySql"/> |
| | | </select> |
| | | <select id="getMineCouponRecordList" resultType="com.mzl.flower.dto.response.coupon.CouponRecordVO"> |
| | | select * |
| | | from t_coupon_record t |
| | | where t.deleted=false |
| | | <if test="param.userId != null and param.userId != ''"> |
| | | AND t.user_id = #{param.userId} |
| | | </if> |
| | | <if test="param.customerId != null and param.customerId != ''"> |
| | | AND t.customer_id = #{param.customerId} |
| | | </if> |
| | | <if test="param.status != null and param.status != ''"> |
| | | AND t.status = #{param.status} |
| | | </if> |
| | | </select> |
| | | |
| | | <sql id="QuerySql"> |