1. update user-point
This commit is contained in:
2026-02-13 21:13:24 +08:00
parent 54a61ec5d5
commit 7fc365ce4c

View File

@@ -42,7 +42,7 @@
update
user_point
set amount = amount - #{amount} , version = version + 1
where id = #{userId} and version = #{version} and (amount - #{amount}) >= 0
where id = #{userId} and version = #{version} and amount >= #{amount}
</update>