This commit is contained in:
dute7liang
2023-12-24 15:48:49 +08:00
parent 8c897acfda
commit 7b51bda039
28 changed files with 751 additions and 26 deletions

View File

@@ -27,6 +27,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
set coin = coin + #{coin}, income_coin = income_coin + #{incomeCoin}
where user_id = #{userId}
</update>
<update id="decrIncomeCoin">
update cai_account
set income_coin = income_coin - #{value}
where user_id = #{userId} and (income_coin - #{value}) > 0
</update>
</mapper>