KKSU
2024-05-15 795a2386c9fef02a43baa640af096a741213d065
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cc.mrbird.febs.dapp.mapper.DappHdRecordMapper">
 
    <select id="findPlatformBannerInPage" resultType="cc.mrbird.febs.dapp.entity.PlatformBanner">
        SELECT
            *
        FROM
            platform_banner
            order by CREATE_TIME desc
    </select>
    <select id="findCoinPriceInPage" resultType="cc.mrbird.febs.dapp.entity.DappCoinPrice">
        SELECT
            *
        FROM
            dapp_coin_price
            order by CREATE_TIME desc
    </select>
    <select id="findHdRecordInPage" resultType="cc.mrbird.febs.dapp.entity.DappHdRecord">
        SELECT
            *
        FROM
            dapp_hd_record
 
        <where>
            <if test="record != null">
                <if test="record.startTime != null and record.startTime != ''">
                    and create_time &gt;= #{record.startTime}
                </if>
                <if test="record.endTime != null and record.endTime != ''">
                    and create_time &lt;= #{record.endTime}
                </if>
            </if>
        </where>
            order by CREATE_TIME desc
    </select>
 
    <select id="selectNewRecord" resultType="cc.mrbird.febs.dapp.entity.DappHdRecord">
        SELECT
            a.*
        FROM
            dapp_hd_record a
        ORDER BY
            a.create_time DESC
            LIMIT 1
    </select>
 
</mapper>