Helius
2020-06-01 e2d0dd77df52bc725e3d5868f0e00694edbdbca6
src/main/resources/mapper/member/MemberWalletCoinDao.xml
@@ -9,6 +9,17 @@
    <select id="selectWalletCoinBymIdAndCode" resultType="com.xcong.excoin.modules.member.entity.MemberWalletCoinEntity">
        select * from member_wallet_coin where member_id = #{memberId} and wallet_code = #{walletCode}
    </select>
    <update id="updateFrozenBalance" parameterType="map">
      UPDATE member_wallet_coin
      SET available_balance = available_balance - #{amount},
          frozen_balance = frozen_balance + #{amount}
      WHERE
         id = #{id}
      AND member_id = #{memberId}
   </update>