Revert "新增悲观锁"

This reverts commit 41fa4726ad6caae24ea4089573fd3eadafd07ed5.
This commit is contained in:
tianfeng 2026-01-15 16:31:31 +08:00
parent 8518653a2f
commit 114d560d66

View File

@ -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();
}