package com.amms.mapper;

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

/**
 * 预约Mapper接口
 */
@Mapper
public interface ReservationMapper {
    /**
     * 查询预约
     *
     * @param id 预约主键
     * @return 预约
     */
    public Reservation selectReservationById(Long id);

    /**
     * 查询预约列表
     *
     * @param reservation 预约
     * @return 预约集合
     */
    public List<Reservation> selectReservationList(Reservation reservation);

    /**
     * 新增预约
     *
     * @param reservation 预约
     * @return 结果
     */
    public int insertReservation(Reservation reservation);

    /**
     * 修改预约
     *
     * @param reservation 预约
     * @return 结果
     */
    public int updateReservation(Reservation reservation);

    /**
     * 删除预约
     *
     * @param id 预约主键
     * @return 结果
     */
    public int deleteReservationById(Long id);

}
