package io.hmit.modules.appointment.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.hmit.common.dao.BaseDao;
import io.hmit.modules.appointment.dto.AppointmentOrderDTO;
import io.hmit.modules.appointment.entity.AppointmentOrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 预约订单表
 *
 * @author zsh 408538940@qq.com
 * @since 1.0.0 2021-02-13
 */
@Mapper
public interface AppointmentOrderDao extends BaseDao<AppointmentOrderEntity> {

//    Page版本V1.0
//    IPage<AppointmentOrderDTO> getAppointmentInfo(IPage<AppointmentOrderEntity> page, String phone, String idCard);
    AppointmentOrderDTO getAppointmentInfo(String phone, String idCard);
    Integer waitingNum(@Param("appointmentTime") String appointmentTime);
    Integer serviceWaitingNum(@Param("serviceId") Long serviceId);

}
