|  | @@ -132,6 +132,14 @@ public class PmsProductServiceImpl implements PmsProductService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public int update(Long id, PmsProductParam productParam) {
 | 
	
		
			
				|  |  | +        if (productParam.getPrice().compareTo(BigDecimal.ZERO) <=0 ) {
 | 
	
		
			
				|  |  | +            throw new BizException("商品价格不能小于等于0");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        for (PmsSkuStock pmsSkuStock : productParam.getSkuStockList()) {
 | 
	
		
			
				|  |  | +            if (pmsSkuStock.getPrice().compareTo(BigDecimal.ZERO) <= 0) {
 | 
	
		
			
				|  |  | +                throw new BizException("商品价格不能小于等于0");
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          int count;
 | 
	
		
			
				|  |  |          //更新商品信息
 | 
	
		
			
				|  |  |          PmsProduct product = productParam;
 |