Helius
2021-01-29 fce0167137e8e7be4514b0e4c20cc09c40c9c0b8
src/main/resources/mapper/member/MemberWalletContractDao.xml
@@ -9,18 +9,24 @@
            and wallet_code = #{symbol}
         </if>
   </select>
   <select id="findContractSymbolListBymemberId" resultType="com.xcong.excoin.modules.coin.parameter.vo.ContractSymbolListVo">
         select wallet_code
         from member_wallet_contract
         where member_id = #{memberId}
   </select>
   <update id="increaseWalletContractBalanceById" parameterType="map" >
      update member_wallet_contract
      <set>
         <if test="availableBalance!=null">
            available_balance = #{availableBalance},
            available_balance = available_balance + #{availableBalance},
         </if>
         <if test="totalBalance!=null">
            total_balance = #{totalBalance},
            total_balance =total_balance + #{totalBalance},
         </if>
         <if test="frozenBalance!=null">
            frozen_balance = #{frozenBalance},
            frozen_balance = frozen_balance + #{frozenBalance},
         </if>
      </set>
      where id =#{id}