package io.hmit.modules.appointment.service;

import io.hmit.common.page.PageData;
import io.hmit.common.service.CrudService;
import io.hmit.modules.appointment.dto.AppointmentOrderDTO;
import io.hmit.modules.appointment.dto.ReservationOrderInfoDTO;
import io.hmit.modules.appointment.dto.YynumberDTO;
import io.hmit.modules.appointment.entity.AppointmentOrderEntity;
import org.springframework.web.bind.annotation.RequestParam;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;
import java.util.Map;

/**
 * 预约订单表
 *
 * @author zsh 408538940@qq.com
 * @since 1.0.0 2021-02-13
 */
public interface AppointmentOrderService extends CrudService<AppointmentOrderEntity, AppointmentOrderDTO> {

//    Page版本V1.0
//    PageData<AppointmentOrderDTO> getAppointmentInfoPage(Map<String, Object> params, String identity);
    List<ReservationOrderInfoDTO> getAppointmentInfoPage(String identity);

//    PageData<AppointmentOrderDTO> page(Map<String, Object> params);

    Integer waitingNum (String appointmentTime);

    Integer reservationAccount (Long serviceId, String appointmentTime);

    Integer serviceWaitingNum (Long serviceId);

    YynumberDTO  findByYuNumber(String sPaperNumber );



}
