Helius
2020-11-05 2b975169fe185b78943ae7029bb01c965c53867b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xcong.excoin.modules.member.mapper.MemberWalletCoinMapper">
 
 
    <select id="findWalletCoinByMemberIdAndWalletCode" resultType="com.xcong.excoin.modules.member.entity.MemberWalletCoinEntity">
        select * from member_wallet_coin where member_id = #{memberId} and wallet_code = #{walletCode}
    </select>
 
    <select id="selectTdCoinWalletByAddress" resultType="com.xcong.excoin.modules.member.entity.TdCoinWallet">
        select * from td_coin_wallet
        where address=#{address} and symbol=#{symbol}
    </select>
    
    <update id="updateTdCoinWalletAvaliable">
        update td_coin_wallet
        set available_balance=available_balance+#{money}
        where address=#{address}
    </update>
</mapper>