xiaoyong931011
2023-02-09 e92b00089d8d57899df380135d79864dade09837
src/main/resources/mapper/dapp/DappOnHookAwardDao.xml
@@ -26,10 +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>