KKSU
2024-07-02 d4819e728d81b311621d41a92a69f5d26f1a9f70
src/main/resources/mapper/dapp/DappStorageMapper.xml
@@ -49,5 +49,23 @@
            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>
</mapper>