1.无法修改库存fix
This commit is contained in:
@@ -245,7 +245,7 @@ public class ProductService {
|
|||||||
if (product.getIsDistribute() != 1 && product.getTypeEnum().equals("sku")) {
|
if (product.getIsDistribute() != 1 && product.getTypeEnum().equals("sku")) {
|
||||||
throw new MsgException("多规格非共享商品暂不支持修改库存");
|
throw new MsgException("多规格非共享商品暂不支持修改库存");
|
||||||
}else {
|
}else {
|
||||||
tbProductSkuMapper.updateStock(productStockDTO.getProductId(), productStockDTO.getShopId(), productStockDTO.getStock());
|
tbProductMapper.updateStock(productStockDTO.getShopId(), productStockDTO.getProductId(), productStockDTO.getStock());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user