From 4296d2a687c0168ed70336eefe1d3f0955f4953e Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 09 Jan 2023 16:25:04 +0800 Subject: [PATCH] 20221227 ε εΌε½ι --- src/main/resources/mapper/modules/MallMemberWalletMapper.xml | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml index 35bbcb1..84693d8 100644 --- a/src/main/resources/mapper/modules/MallMemberWalletMapper.xml +++ b/src/main/resources/mapper/modules/MallMemberWalletMapper.xml @@ -42,7 +42,8 @@ <if test="record.commission != null"> , commission = #{record.commission} </if> - where id=#{record.id} and revision=#{record.revision} + where id=#{record.id} +-- and revision=#{record.revision} </update> <select id="selectSumBalance" resultType="java.math.BigDecimal"> @@ -60,4 +61,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