xiaoyong931011
2022-10-10 d1c4c4b56f065d28cadf90370e0709294cfcdbc4
src/main/resources/mapper/dapp/DappTransferRecordDao.xml
@@ -6,10 +6,15 @@
        select * from dapp_transfer_record
        <where>
            <if test="record.address != '' and record.address != null">
                and address=#{record.address}
                and (from_address = #{record.address} or to_address = #{record.address})
            </if>
        </where>
        order by create_time desc
    </select>
    <select id="selectByHash" resultType="cc.mrbird.febs.dapp.entity.DappTransferRecordEntity">
        select * from dapp_transfer_record
        where hash=#{hash}
    </select>
</mapper>