From b2901a0793cfe3a1eb04318c1f8786c988e83108 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期五, 16 八月 2019 14:28:14 +0800 Subject: [PATCH] 的 --- fanli/src/main/java/com/yeshi/fanli/mapping/user/UserSystemCouponGiveRecordMapper.xml | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/user/UserSystemCouponGiveRecordMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/user/UserSystemCouponGiveRecordMapper.xml index d5b9c50..57dec32 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/user/UserSystemCouponGiveRecordMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/user/UserSystemCouponGiveRecordMapper.xml @@ -44,4 +44,9 @@ <if test="receiveTime != null">cgr_receive_time=#{receiveTime,jdbcType=TIMESTAMP},</if> </set> where cgr_id = #{id,jdbcType=BIGINT} </update> + <select id="getRecordByUidAndCouponId"> + SELECT * FROM yeshi_ec_user_system_coupon_give_record + WHERE cgr_give_uid = #{uid} AND cgr_coupon_id = #{couponId} + LIMIT 1 + </select> </mapper> -- Gitblit v1.8.0