修改更新库存方法
This commit is contained in:
parent
142f2414a9
commit
f0c1967f7a
@ -1516,7 +1516,7 @@ public class ShopOrderReturnServiceImpl extends BaseServiceImpl<ShopOrderReturnM
|
||||
upadteShopProductItem.setItem_id(shopOrderItem.getItem_id());
|
||||
upadteShopProductItem.setItem_quantity(productItem.getItem_quantity() + returnNum);
|
||||
upadteShopProductItem.setItem_quantity_frozen(lestFrozenQuantity);
|
||||
if (!shopProductItemService.edit(upadteShopProductItem)) {
|
||||
if (!shopProductItemService.updateById(upadteShopProductItem)) {
|
||||
logger.error("增加库存失败!商品项ID: {}", itemId);
|
||||
throw new ApiException(I18nUtil._("增加库存失败!"));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user