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}