|  | @@ -2,7 +2,9 @@ package com.yonge.cooleshow.mbg.mapper;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.mbg.model.PmsSkuStock;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.mbg.model.PmsSkuStockExample;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  import org.apache.ibatis.annotations.Param;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  public interface PmsSkuStockMapper {
 | 
	
	
		
			
				|  | @@ -27,4 +29,14 @@ public interface PmsSkuStockMapper {
 | 
	
		
			
				|  |  |      int updateByPrimaryKeySelective(PmsSkuStock record);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      int updateByPrimaryKey(PmsSkuStock record);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * 锁定库存
 | 
	
		
			
				|  |  | +     *
 | 
	
		
			
				|  |  | +     * @param productSkuId
 | 
	
		
			
				|  |  | +     * @param quantity
 | 
	
		
			
				|  |  | +     * @return
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    int lockStock(@Param("productSkuId") Long productSkuId, @Param("quantity") Integer quantity);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  }
 |