|
@@ -83,9 +83,6 @@ public class OmsCartItemServiceImpl implements OmsCartItemService {
|
|
|
cartItem.setProductBrand(pmsProduct.getName());
|
|
|
cartItem.setProductSn(pmsProduct.getProductSn());
|
|
|
if (cartItem.getProductSkuId() != null) {
|
|
|
- if (pmsSkuStock.getStock() - pmsSkuStock.getLockStock() < cartItem.getQuantity()) {
|
|
|
- throw new BizException("库存不足");
|
|
|
- }
|
|
|
cartItem.setProductSkuCode(pmsSkuStock.getSkuCode());
|
|
|
cartItem.setProductAttr(pmsSkuStock.getSpData());
|
|
|
cartItem.setPrice(pmsSkuStock.getPrice());
|
|
@@ -98,9 +95,6 @@ public class OmsCartItemServiceImpl implements OmsCartItemService {
|
|
|
if (cartItem.getPromoterId() != null) {
|
|
|
existCartItem.setPromoterId(cartItem.getPromoterId());
|
|
|
}
|
|
|
- if (pmsSkuStock.getStock() - pmsSkuStock.getLockStock() < existCartItem.getQuantity() + cartItem.getQuantity()) {
|
|
|
- throw new BizException("库存不足");
|
|
|
- }
|
|
|
if(existCartItem.getQuantity() + cartItem.getQuantity() > 200) {
|
|
|
existCartItem.setQuantity(200);
|
|
|
} else {
|