xiaoyong931011
2023-05-31 9b37a59c8130e82ec59c2414965dcf4aa460f0b2
src/main/resources/mapper/dapp/DappAKlineMapper.xml
@@ -50,6 +50,15 @@
        limit 1
    </select>
    <select id="selectOneByTypeAsc" resultType="cc.mrbird.febs.dapp.entity.DappAKlineEntity">
        select
            a.*
        from dapp_a_kline a
        where type in (0,1)
        order by a.create_time asc
            limit 1
    </select>
    <select id="selectListByTypeAndHour" resultType="cc.mrbird.febs.dapp.entity.DappAKlineEntity">
        select
        a.*
@@ -61,4 +70,21 @@
        order by a.create_time asc
    </select>
    <select id="selectOneHourByType" resultType="cc.mrbird.febs.dapp.entity.DappAKlineEntity">
        select
            a.*
        from dapp_a_kline a
        where type = 1
        order by a.create_time desc
            limit 1
    </select>
    <select id="selectListByIds" resultType="cc.mrbird.febs.dapp.entity.DappAKlineEntity">
        select
            a.*
        from dapp_a_kline a
        where id > #{min}
          and id <![CDATA[ <= ]]> #{max}
    </select>
</mapper>