退单针对商品不存在的问题处理

This commit is contained in:
liyj 2025-11-07 14:36:06 +08:00
parent 2661277bd2
commit eeb7f05706

View File

@ -1501,8 +1501,9 @@ public class ShopOrderReturnServiceImpl extends BaseServiceImpl<ShopOrderReturnM
ShopProductItem productItem = shopProductItemService.get(itemId);
if (productItem == null) {
logger.error("该订单商品表-SKU表信息不存在商品项ID: {}", itemId);
throw new ApiException(I18nUtil._("该订单商品表-SKU表信息不存在"));
logger.error("该订单商品表-SKU表信息不存在商品项ID: {}", itemId);//说明这个itemid已经不存在了不对库存操作
continue;
// throw new ApiException(I18nUtil._("该订单商品表-SKU表信息不存在"));
}
// 增加库存