package com.amms.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.amms.domain.ReservationVisitor;

/**
 * 游客预约明细Mapper接口
 */
@Mapper
public interface ReservationVisitorMapper {
    /**
     * 查询游客预约明细
     *
     * @param id 游客预约明细主键
     * @return 游客预约明细
     */
    public ReservationVisitor selectReservationVisitorById(Long id);

    /**
     * 查询游客预约明细列表
     *
     * @param reservationVisitor 游客预约明细
     * @return 游客预约明细集合
     */
    public List<ReservationVisitor> selectReservationVisitorList(ReservationVisitor reservationVisitor);


    /**
     * 根据预约id查询预约游客信息
     * @param reserveId
     * @return
     */
    public List<ReservationVisitor> selectReservationVisitorListByReserveId(Long reserveId);

    /**
     * 新增游客预约明细
     *
     * @param reservationVisitor 游客预约明细
     * @return 结果
     */
    public int insertReservationVisitor(ReservationVisitor reservationVisitor);

    /**
     * 修改游客预约明细
     *
     * @param reservationVisitor 游客预约明细
     * @return 结果
     */
    public int updateReservationVisitor(ReservationVisitor reservationVisitor);

    /**
     * 删除游客预约明细
     *
     * @param id 游客预约明细主键
     * @return 结果
     */
    public int deleteReservationVisitorById(Long id);

    /**
     * 根据预约ID批量删除游客预约明细
     *
     * @param reservationId 预约主表ID
     * @return 结果
     */
    public int deleteReservationVisitorsByReservationId(Long reservationId);

}
