create_by,
		create_time,
		update_by,
		update_time,
			id,
			p_id,
			name,
			img_path,
			stock,
			price,
			score,
			sort,
			atrid,
			purchase_price,
			seal_count,
			stock_code,
			shop_id
	
    
    
		#{item.createBy},
		now(),
		#{item.updateBy},
		now(),
			#{item.id},
			#{item.pId},
			#{item.name},
			#{item.imgPath},
			#{item.stock},
			#{item.price},
			#{item.score},
			#{item.sort},
			#{item.atrid},
			#{item.purchasePrice},
			#{item.sealCount},
			#{item.stockCode},
			#{item.shopId}
	
    
    
        
            
                and id = #{record.id}
            
            
                and p_id = #{record.pId}
            
            
                and name = #{record.name}
            
            
                and img_path = #{record.imgPath}
            
            
                and stock = #{record.stock}
            
            
                and price = #{record.price}
            
            
                and score = #{record.score}
            
            
                and sort = #{record.sort}
            
            
                and atrid = #{record.atrid}
            
            
                and stock_code = #{record.stockCode}
            
            
                and shop_id = #{record.shopId}
            
        
    
    
    
        INSERT INTO shop_sku (
        
        )
        VALUES (
        
        )
    
    
    
        INSERT INTO shop_sku (
        
        )
        VALUES
        (
            
            )
        
    
    
    
        UPDATE shop_sku
        
            
                p_id = #{pId},
            
            
                name = #{name},
            
            
                img_path = #{imgPath},
            
            
                stock = #{stock},
            
            
                price = #{price},
            
            
                sort = #{sort},
            
            
                atrid = #{atrid},
            
            
                purchase_price = #{purchasePrice},
            
            
                stock_code = #{stockCode},
            
        
        WHERE id=#{id}
    
    
    
        UPDATE shop_sku
        
            
                p_id = #{record.pId},
            
            
                name = #{record.name},
            
            
                img_path = #{record.imgPath},
            
            
                stock = #{record.stock},
            
            
                price = #{record.price},
            
            
                score = #{record.score},
            
            
                sort = #{record.sort},
            
            
                atrid = #{record.atrid},
            
            
                purchase_price = #{record.purchasePrice},
            
            
                seal_count = #{record.sealCount},
            
            
                stock_code = #{record.stockCode},
            
        
        WHERE id=#{record.id}
    
    
    
        delete from shop_sku where id in
        
            #{item}
        
    
    
    
		DELETE FROM shop_sku
		where  id=#{id} 
	
    
    
        DELETE FROM shop_sku
        
            
        
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        update shop_sku
        
            
                
                    
                        when atrid = #{item.atrid} then #{item.stock}
                    
                
            
            
                
                    
                        when atrid = #{item.atrid} then now()
                    
                
            
        
        where
        
            atrid=#{item.atrid}