xiaoyong931011
2023-01-06 d8f20196fb659300b0a8eb3e7c5d7ab1ad7fcb7e
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>