create_by,
		create_time,
		update_by,
		update_time,
			id,
			p_id,
			img_path,
			is_main_img,
			sort
	
	
	
	
		#{item.createBy},
		now(),
		#{item.updateBy},
		now(),
			#{item.id},
			#{item.pId},
			#{item.imgPath},
			#{item.isMainImg},
			#{item.sort}
	
	
	
	
		 
		 
			
				and id  = #{record.id} 
			
			
				and p_id  = #{record.pId} 
			
			
				and img_path  = #{record.imgPath} 
			
			
				and is_main_img  = #{record.isMainImg} 
			
			
				and sort  = #{record.sort} 
			
		
		 
	
	
	
	
		INSERT INTO shop_product_img (
			 
		)
	VALUES (
		 
	)
	
	
	
	
	
	
		INSERT INTO shop_product_img (
			
		)
	VALUES 
	(
			
	)
	
	
	
	
	
	
	
	
		UPDATE shop_product_img
		
			
					p_id = #{pId},
						
			
					img_path = #{imgPath},
						
			
					is_main_img = #{isMainImg},
						
			
					sort = #{sort},
						
		
		WHERE id=#{id} 
	 
	
	
	
	
		UPDATE shop_product_img
		
			
				p_id  = #{record.pId}, 
			
			
				img_path  = #{record.imgPath}, 
			
			
				is_main_img  = #{record.isMainImg}, 
			
			
				sort  = #{record.sort}, 
			
		
		WHERE id=#{record.id} 
	
	
	
	
		delete from shop_product_img where  id in
		
			#{item}
		
	
		
	
	
		DELETE FROM shop_product_img
		where  p_id=#{id}
	
	
	
	
		DELETE FROM shop_product_img