xiaoyong931011
2023-05-30 b65c0ec3695a9ddd6972e2671ae3059f8fd5de6d
src/main/resources/mapper/dapp/DappSystemProfitDao.xml
@@ -66,6 +66,9 @@
             dapp_system_profit a
        inner join dapp_member b on a.member_id = b.id
        <where>
            <if test="record.id != '' and record.id != null">
                and a.id = #{record.id}
            </if>
            <if test="record.address != '' and record.address != null">
                and b.address = #{record.address}
            </if>
@@ -81,6 +84,7 @@
        a.create_time createTime,
        a.amount amount,
        a.status status,
        a.from_hash fromHash,
        a.type type,
        b.address address
        from
@@ -90,4 +94,20 @@
        order by a.create_time asc
    </select>
    <select id="selectDappSysstemProfitByState" resultType="cc.mrbird.febs.dapp.entity.DappSystemProfit">
        select
            a.*
        from
            dapp_system_profit a
        where a.state = #{state}
        order by a.id asc
    </select>
    <select id="selectByMemberId" resultType="cc.mrbird.febs.dapp.entity.DappSystemProfit">
        select a.*
        from dapp_system_profit a
        where member_id = #{memberId}
            limit 1
    </select>
</mapper>