|
|
@ -4,10 +4,10 @@
|
|
|
|
<select id="getCouponAccuessLog" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
<select id="getCouponAccuessLog" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
SELECT
|
|
|
|
SELECT
|
|
|
|
accuess_id,client_id,customer_openid,order_id,
|
|
|
|
accuess_id,client_id,customer_openid,order_id,
|
|
|
|
TRIM(LEADING 'CTRIP_' FROM coupon_id) coupon_id,
|
|
|
|
TRIM(LEADING #{keyword} FROM coupon_id) coupon_id,
|
|
|
|
coupon_deal_amount,min_pay_amount,currency,creation_date,
|
|
|
|
coupon_deal_amount,min_pay_amount,currency,creation_date,
|
|
|
|
last_update_date,is_valid,transaction_id,transaction_refund_id,refund_id
|
|
|
|
last_update_date,is_valid,transaction_id,transaction_refund_id,refund_id
|
|
|
|
FROM cus_coupon_accuess_log
|
|
|
|
FROM cus_coupon_accuess_log
|
|
|
|
WHERE locate("CTRIP_",coupon_id) AND client_id = #{client_id}
|
|
|
|
WHERE locate(#{keyword},coupon_id) = 1 AND client_id = #{client_id}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|