create_by,
		create_time,
		update_by,
		update_time,
			id,
			waybill_no,
			delivery_way,
			receive_address,
			logistics_company,
			order_id,
			user_id,
			order_no,
			remarks,
			logistics_company_code,
			logistics_status,
			delivery_time,
			pick_up_status,
			shop_id
	
	
	
		#{item.createBy},
		now(),
		#{item.updateBy},
		now(),
			#{item.id},
			#{item.waybillNo},
			#{item.deliveryWay},
			#{item.receiveAddress},
			#{item.logisticsCompany},
			#{item.orderId},
			#{item.userId},
			#{item.orderNo},
			#{item.remarks},
			#{item.logisticsCompanyCode},
			#{item.logisticsStatus},
			#{item.deliveryTime},
			#{item.pickUpStatus},
			#{item.shopId}
	
	
	
		 
			
				and id  = #{record.id}
			
			
				and waybill_no like concat('%',#{record.waybillNo},'%')
			
			
				and delivery_way  = #{record.deliveryWay}
			
			
				and receive_address  = #{record.receiveAddress}
			
			
				and logistics_company  = #{record.logisticsCompany}
			
			
				and order_id  = #{record.orderId}
			
			
				and user_id  = #{record.userId}
			
			
				and order_no  like concat('%',#{record.orderNo},'%')
			
			
				and remarks  = #{record.remarks}
			
			
				and logistics_company_code  = #{record.logisticsCompanyCode}
			
			
				and logistics_status  = #{record.logisticsStatus}
			
			
				and date_format(delivery_time,'%Y-%m-%d') >= #{record.startTime}
			
			 
				 and date_format(delivery_time,'%Y-%m-%d') <= #{record.endTime}
			 
			 
				 and delivery_time  = #{record.deliveryTime}
			 
			 
				 and pick_up_status  = #{record.pickUpStatus}
			 
			 
				 and shop_id  = #{record.shopId}
			 
		
	
	
	
		INSERT INTO shop_delivery_info (
			 
		)
	VALUES (
		 
	)
	
	
	
		INSERT INTO shop_delivery_info (
		
		)
	VALUES
	(
		
	)
	
	
	
		UPDATE shop_delivery_info
		
			
					waybill_no = #{waybillNo},
				
			
					delivery_way = #{deliveryWay},
				
			
					receive_address = #{receiveAddress},
				
			
					logistics_company = #{logisticsCompany},
				
			
					order_id = #{orderId},
				
			
					user_id = #{userId},
				
			
					order_no = #{orderNo},
				
			
					remarks = #{remarks},
				
			
					logistics_company_code = #{logisticsCompanyCode},
				
			
					logistics_status = #{logisticsStatus},
				
			
				delivery_time = #{deliveryTime},
				
			
				pick_up_status = #{pickUpStatus},
			
		
		WHERE id=#{id}
	
	
	
		UPDATE shop_delivery_info
		
			
				waybill_no  = #{record.waybillNo},
			
			
				delivery_way  = #{record.deliveryWay},
			
			
				receive_address  = #{record.receiveAddress},
			
			
				logistics_company  = #{record.logisticsCompany},
			
			
				order_id  = #{record.orderId},
			
			
				user_id  = #{record.userId},
			
			
				order_no  = #{record.orderNo},
			
			
				remarks  = #{record.remarks},
			
			
				logistics_company_code  = #{record.logisticsCompanyCode},
			
			
				logistics_status  = #{record.logisticsStatus},
			
			
				delivery_time  = #{record.deliveryTime},
			
			
				pick_up_status  = #{record.pickUpStatus},
			
			
				shop_id  = #{record.shopId},
			
		
		WHERE id=#{record.id}
	
	
	
		delete from shop_delivery_info where  id in
		
			#{item}
		
	
	
	
		DELETE FROM shop_delivery_info
		where  id=#{id} 
	
	
	
		DELETE FROM shop_delivery_info