KKSU
2024-07-04 a34ac17fa9106f23cddf0b9a9cf90f909ca8ccc6
src/main/resources/mapper/dapp/DappStorageMapper.xml
@@ -46,7 +46,25 @@
        where
                date_format(create_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d')
        order by amount desc
            limit {offset},{count}
            limit #{offset},#{count}
    </select>
    <select id="selectListInPage" resultType="cc.mrbird.febs.dapp.entity.DappStorage">
        select
        a.*,
        b.address address
        from
        dapp_storage a
        left join dapp_member b on a.member_id = b.id
        <where>
            <if test="record.address != '' and record.address != null">
                and b.address = #{record.address}
            </if>
            <if test="record.state != null">
                and a.state = #{record.state}
            </if>
        </where>
        order by a.create_time desc
    </select>