xiaoyong931011
2022-12-06 b87113d59a71d5e2ca53ce266bbb7c0b42624f33
src/main/resources/mapper/dapp/DappOnHookAwardDao.xml
@@ -26,9 +26,20 @@
            a.*
        from dapp_on_hook_award a
        where
           date_format(a.award_time, '%Y-%m-%d %H:%i') < #{awardTime}
           date_format(a.award_time, '%Y-%m-%d %H:%i') <= #{awardTime}
        order by a.id desc
        limit 20
    </select>
    <select id="selectByIdLimitTT" resultType="cc.mrbird.febs.dapp.entity.DappOnHookAward">
        select
            a.*
        from dapp_on_hook_award a
            where
           a.id   &lt;= #{id}
        order by a.id desc
            limit 20
    </select>
</mapper>