From df1716a9abacac95261d686bdf0776bc7d6deca2 Mon Sep 17 00:00:00 2001
From: zainali5120 <512061637@qq.com>
Date: Sun, 13 Sep 2020 01:15:03 +0800
Subject: [PATCH] 撮合交易代码提交
---
src/main/resources/mapper/member/MemberWalletCoinDao.xml | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/member/MemberWalletCoinDao.xml b/src/main/resources/mapper/member/MemberWalletCoinDao.xml
index 79979c5..e7fd894 100644
--- a/src/main/resources/mapper/member/MemberWalletCoinDao.xml
+++ b/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>
\ No newline at end of file
--
Gitblit v1.9.1