From 2b71bd05caf230bf9d35e0f000cea6d0413a774e Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期五, 01 十一月 2019 11:39:45 +0800 Subject: [PATCH] 邀请奖励红包 --- fanli/src/main/java/com/yeshi/fanli/mapping/redpack/RedPackGiveRecordMapper.xml | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/redpack/RedPackGiveRecordMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/redpack/RedPackGiveRecordMapper.xml index e7abf5b..8951912 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/redpack/RedPackGiveRecordMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/redpack/RedPackGiveRecordMapper.xml @@ -52,4 +52,11 @@ <if test="state != null">rpgr_state=#{state,jdbcType=INTEGER},</if> </set> where rpgr_id = #{id,jdbcType=BIGINT} </update> + + <select id="overdueList" resultMap="BaseResultMap"> + SELECT * FROM yeshi_red_pack_give_record + WHERE rpgr_state = 0 AND rpgr_end_time IS NOT NULL AND rpgr_end_time <![CDATA[<]]> NOW() + LIMIT #{count} + </select> + </mapper> -- Gitblit v1.8.0