This commit is contained in:
张良(004796)
2024-04-23 14:52:56 +08:00
parent d612fafd1b
commit 83296ed44f

View File

@@ -7,12 +7,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="decrIncome">
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>
<update id="incrIncome">
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>
<update id="incsWithdrawCount">
update xq_user_extend
@@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="incsWxTransNum">
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}
</update>
<select id="pageAdmin" resultType="com.ruoyi.xq.dto.admin.user.UserExtendAdminVo">
select t1.*, t2.nickname,t2.mobile,t2.avatar