| <?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.dao.MemberWalletContractDao">  | 
|     <select id="findWalletContractByMemberIdAndSymbol" resultType="com.xcong.excoin.modules.member.entity.MemberWalletContractEntity">  | 
|             select *   | 
|             from member_wallet_contract   | 
|             where member_id = #{memberId}   | 
|             <if test = "symbol != null and symbol !=''">  | 
|                 and wallet_code = #{symbol}  | 
|             </if>  | 
|     </select>  | 
|   | 
|     <update id="increaseWalletContractBalanceById" parameterType="map" >  | 
|         update member_wallet_contract  | 
|         <set>  | 
|             <if test="availableBalance!=null">  | 
|                 available_balance = available_balance + #{availableBalance},  | 
|             </if>  | 
|             <if test="totalBalance!=null">  | 
|                 total_balance =total_balance + #{totalBalance},  | 
|             </if>  | 
|             <if test="frozenBalance!=null">  | 
|                 frozen_balance = frozen_balance + #{frozenBalance},  | 
|             </if>  | 
|         </set>  | 
|         where id =#{id}  | 
|     </update>  | 
|       | 
| </mapper> |