新增悲观锁
This commit is contained in:
parent
31e7b3239f
commit
41fa4726ad
@ -63,7 +63,8 @@ public class FragmentsBackpackServiceImpl extends
|
||||
.setSql("quantity=quantity-" + quantity)
|
||||
.in(FragmentsBackpack::getFragmentsId, fragmentsIds)
|
||||
.eq(FragmentsBackpack::getUserId, userId)
|
||||
.last(PageConstant.formatLimit(fragmentsIds.size()))
|
||||
.ge(FragmentsBackpack::getQuantity, quantity)
|
||||
.last(PageConstant.formatLimit(fragmentsIds.size()) + " FOR UPDATE")
|
||||
.execute();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user