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