From 01e773cf27e572b8fb83538d85f31130930d93d1 Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期四, 15 八月 2019 15:57:23 +0800 Subject: [PATCH] 券赠送 --- fanli/src/main/java/com/yeshi/fanli/mapping/user/TokenRecordMapper.xml | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/user/TokenRecordMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/user/TokenRecordMapper.xml index b0e7409..cd82c2b 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/user/TokenRecordMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/user/TokenRecordMapper.xml @@ -60,4 +60,18 @@ <if test="updateTime != null">tr_update_time=#{updateTime,jdbcType=TIMESTAMP},</if> </set> where tr_id = #{id,jdbcType=BIGINT} </update> + + <select id="getByToken" resultMap="BaseResultMap"> + SELECT * FROM yeshi_ec_token_record + WHERE tr_token = #{token} + LIMIT 1 + </select> + + <select id="getNearByTypeAndIdentify" resultMap="BaseResultMap"> + SELECT * FROM yeshi_ec_token_record + WHERE tr_identify = #{identify} AND tr_type = #{type} + ORDER BY tr_create_time DESC + LIMIT 1 + </select> + </mapper> -- Gitblit v1.8.0