From d8f20196fb659300b0a8eb3e7c5d7ab1ad7fcb7e Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 06 Jan 2023 15:21:29 +0800 Subject: [PATCH] 20221227 ε εΌε½ι --- src/main/resources/mapper/modules/MallMemberWalletMapper.xml | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml index 35bbcb1..e4f7e60 100644 --- a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml +++ b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml @@ -60,4 +60,12 @@ <select id="selectSumCommission" resultType="java.math.BigDecimal"> select ifnull(sum(commission),0) total from mall_member_wallet </select> + + + <update id="updateBlockBalanceById"> + update mall_member_wallet + set + balance = IFNULL(balance, 0) + #{balance} + where id=#{id} + </update> </mapper> \ No newline at end of file -- Gitblit v1.9.1