| | |
| | | set available_balance=available_balance+#{money}
|
| | | where address=#{address}
|
| | | </update>
|
| | |
|
| | | <update id="updateTdCoinWalletTrc20">
|
| | | update td_coin_wallet
|
| | | set available_balance=available_balance+#{money}
|
| | | where mem_id=#{memberId} and symbol ='USDT'
|
| | | </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> |