init
This commit is contained in:
@@ -7,12 +7,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<update id="decrIncome">
|
<update id="decrIncome">
|
||||||
update xq_user_extend
|
update xq_user_extend
|
||||||
set income_coin = income_coin - #{price}
|
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>
|
||||||
<update id="incrIncome">
|
<update id="incrIncome">
|
||||||
update xq_user_extend
|
update xq_user_extend
|
||||||
set income_coin = income_coin + #{price}
|
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>
|
||||||
<update id="incsWithdrawCount">
|
<update id="incsWithdrawCount">
|
||||||
update xq_user_extend
|
update xq_user_extend
|
||||||
@@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<update id="incsWxTransNum">
|
<update id="incsWxTransNum">
|
||||||
update xq_user_extend
|
update xq_user_extend
|
||||||
set wx_trans_num = wx_trans_num + #{num}
|
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>
|
</update>
|
||||||
<select id="pageAdmin" resultType="com.ruoyi.xq.dto.admin.user.UserExtendAdminVo">
|
<select id="pageAdmin" resultType="com.ruoyi.xq.dto.admin.user.UserExtendAdminVo">
|
||||||
select t1.*, t2.nickname,t2.mobile,t2.avatar
|
select t1.*, t2.nickname,t2.mobile,t2.avatar
|
||||||
|
|||||||
Reference in New Issue
Block a user