该商品未开启库存管理,暂不支持修改库存
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user