From 83296ed44f1f3b5b348f5b250af42e857fe5220c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=89=AF=28004796=29?= Date: Tue, 23 Apr 2024 14:52:56 +0800 Subject: [PATCH] init --- ruoyi-xq/src/main/resources/mapper/xq/UserExtendMapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruoyi-xq/src/main/resources/mapper/xq/UserExtendMapper.xml b/ruoyi-xq/src/main/resources/mapper/xq/UserExtendMapper.xml index 1ccb1a2..b272569 100644 --- a/ruoyi-xq/src/main/resources/mapper/xq/UserExtendMapper.xml +++ b/ruoyi-xq/src/main/resources/mapper/xq/UserExtendMapper.xml @@ -7,12 +7,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update xq_user_extend set income_coin = income_coin - #{price} - where income_coin - #{price} > 0 and user_id = #{userId} + where income_coin - #{price} >= 0 and user_id = #{userId} update xq_user_extend set income_coin = income_coin + #{price} - where income_coin + #{price} > 0 and user_id = #{userId} + where income_coin + #{price} >= 0 and user_id = #{userId} update xq_user_extend @@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update xq_user_extend set wx_trans_num = wx_trans_num + #{num} - where wx_trans_num + #{num} > 0 and user_id = #{userId} + where wx_trans_num + #{num} >= 0 and user_id = #{userId}