update:
1. update user-point
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user