|  | @@ -71,14 +71,14 @@ public class OmsCartItemServiceImpl implements OmsCartItemService {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          PmsSkuStock pmsSkuStock = skuStockMapper.selectByPrimaryKey(cartItem.getProductSkuId());
 | 
	
		
			
				|  |  | -        if (pmsSkuStock == null) {
 | 
	
		
			
				|  |  | -            throw new BizException("商品规格不存在");
 | 
	
		
			
				|  |  | +        if (pmsSkuStock == null|| pmsSkuStock.getDeleteStatus() == 1) {
 | 
	
		
			
				|  |  | +            throw new BizException("商品已下架");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if (existCartItem == null) {
 | 
	
		
			
				|  |  |              PmsProduct pmsProduct = pmsProductMapper.selectByPrimaryKey(cartItem.getProductId());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            if (pmsProduct == null) {
 | 
	
		
			
				|  |  | -                throw new BizException("商品不存在");
 | 
	
		
			
				|  |  | +            if (pmsProduct == null || pmsProduct.getDeleteStatus() == 1) {
 | 
	
		
			
				|  |  | +                throw new BizException("商品已下架");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              cartItem.setPrice(pmsProduct.getPrice());
 | 
	
		
			
				|  |  |              cartItem.setProductPic(pmsProduct.getPic());
 | 
	
	
		
			
				|  | @@ -187,9 +187,9 @@ public class OmsCartItemServiceImpl implements OmsCartItemService {
 | 
	
		
			
				|  |  |          PmsSkuStock pmsSkuStock = skuStockMapper.selectByPrimaryKey(omsCartItem.getProductSkuId());
 | 
	
		
			
				|  |  |          List<PmsSkuStock> pmsSkuStocks = portalProductService.updateProductSkuStock(Lists.newArrayList(pmsSkuStock));
 | 
	
		
			
				|  |  |          pmsSkuStock = pmsSkuStocks.get(0);
 | 
	
		
			
				|  |  | -        if (pmsSkuStock.getStock() - pmsSkuStock.getLockStock() < quantity) {
 | 
	
		
			
				|  |  | -            return pmsSkuStock.getStock() - pmsSkuStock.getLockStock();
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | +//        if (pmsSkuStock.getStock() - pmsSkuStock.getLockStock() < quantity) {
 | 
	
		
			
				|  |  | +//            return pmsSkuStock.getStock() - pmsSkuStock.getLockStock();
 | 
	
		
			
				|  |  | +//        }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          OmsCartItemExample example = new OmsCartItemExample();
 | 
	
		
			
				|  |  |          example.createCriteria().andDeleteStatusEqualTo(0)
 |