From d174d6963d62b3bd176f9e7ba3cf0d7f75a91b69 Mon Sep 17 00:00:00 2001 From: zainali5120 <512061637@qq.com> Date: Wed, 16 Sep 2020 16:03:22 +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