该商品未开启库存管理,暂不支持修改库存
This commit is contained in:
parent
1490bf0cdb
commit
a1b16bd2b0
|
|
@ -363,7 +363,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> 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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue