update:
1. update user-point
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
update
|
update
|
||||||
user_point
|
user_point
|
||||||
set amount = amount - #{amount} , version = version + 1
|
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>
|
</update>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user