xiaoyong931011
2020-05-27 86dba4c9631c1c7d2f11a2fdd30427eeb5524105
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>