Helius
2020-11-13 9935010f3b4ec131c660d7816f39ddb611a48314
src/main/resources/mapper/modules/MemberWalletCoinMapper.xml
@@ -17,4 +17,13 @@
        set available_balance=available_balance+#{money}
        where address=#{address}
    </update>
    <select id="selectMemberWalletCoinByMemberId" resultType="java.util.HashMap">
        select
            member_id,
            MAX(case wallet_code when 'USDT' then available_balance else 0 end) usdt,
            MAX(case wallet_code when 'RFNC' then available_balance else 0 end) rfnc
        from member_wallet_coin
        where member_id=#{memberId}
    </select>
</mapper>