zainali5120
2020-09-16 d174d6963d62b3bd176f9e7ba3cf0d7f75a91b69
src/main/resources/mapper/member/MemberWalletCoinDao.xml
@@ -39,5 +39,21 @@
      where id=#{id}
   </update>
   <update id="updateWalletBalance" parameterType="map">
      update member_wallet_coin
      <set>
         <if test="availableBalance != null">
            available_balance = IFNULL(available_balance, 0) + #{availableBalance},
         </if>
         <if test="totalBalance != null">
            total_balance = IFNULL(total_balance, 0) + #{totalBalance},
         </if>
         <if test="frozenBalance != null">
            frozen_balance = IFNULL(frozen_balance, 0) + #{frozenBalance},
         </if>
      </set>
      where id=#{id}
   </update>
</mapper>