From a1b16bd2b0917cbdda8283582109f88454816012 Mon Sep 17 00:00:00 2001 From: Tankaikai Date: Tue, 25 Mar 2025 11:14:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A5=E5=95=86=E5=93=81=E6=9C=AA=E5=BC=80?= =?UTF-8?q?=E5=90=AF=E5=BA=93=E5=AD=98=E7=AE=A1=E7=90=86=EF=BC=8C=E6=9A=82?= =?UTF-8?q?=E4=B8=8D=E6=94=AF=E6=8C=81=E4=BF=AE=E6=94=B9=E5=BA=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../czg/service/product/service/impl/ProductServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ProductServiceImpl.java b/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ProductServiceImpl.java index 252b791e..607a01ce 100644 --- a/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ProductServiceImpl.java +++ b/cash-service/product-service/src/main/java/com/czg/service/product/service/impl/ProductServiceImpl.java @@ -363,7 +363,7 @@ public class ProductServiceImpl extends ServiceImpl impl public void updateProductStock(ProductModifyStockParam param) { Product entity = super.getById(param.getId()); if (entity.getIsStock() == YesNoEnum.NO.value()) { - return; + throw new CzgException("该商品未开启库存管理,暂不支持修改库存"); } if (!entity.getShopId().equals(param.getShopId())) { return;