From 5b5e060cde0480f27924803116af8215d4e41073 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 29 Jul 2020 19:24:41 +0800
Subject: [PATCH] 20200729 代码提交
---
src/main/resources/mapper/member/MemberWalletContractDao.xml | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/member/MemberWalletContractDao.xml b/src/main/resources/mapper/member/MemberWalletContractDao.xml
index 074cd51..878b221 100644
--- a/src/main/resources/mapper/member/MemberWalletContractDao.xml
+++ b/src/main/resources/mapper/member/MemberWalletContractDao.xml
@@ -9,5 +9,21 @@
and wallet_code = #{symbol}
</if>
</select>
+
+ <update id="increaseWalletContractBalanceById" parameterType="map" >
+ update member_wallet_contract
+ <set>
+ <if test="availableBalance!=null">
+ available_balance = available_balance + #{availableBalance},
+ </if>
+ <if test="totalBalance!=null">
+ total_balance =total_balance + #{totalBalance},
+ </if>
+ <if test="frozenBalance!=null">
+ frozen_balance = frozen_balance + #{frozenBalance},
+ </if>
+ </set>
+ where id =#{id}
+ </update>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1