package com.xinelu.manage.service.appointmentorderdetails;


import com.xinelu.common.core.domain.AjaxResult;
import com.xinelu.manage.domain.appointmentorderdetails.AppointmentOrderDetails;
import com.xinelu.manage.dto.appointmentorderdetails.AppointmentOrderDetailsDTO;
import com.xinelu.manage.vo.appointmentorderdetails.AppointmentOrderDetailsVO;

import java.util.List;

/**
 * 预约订单明细Service接口
 *
 * @author 纪寒
 * @date 2022-09-05
 */
public interface IAppointmentOrderDetailsService {
    /**
     * 查询预约订单明细
     *
     * @param id 预约订单明细主键
     * @return 预约订单明细
     */
    AppointmentOrderDetails selectAppointmentOrderDetailsById(Long id);

    /**
     * 查询预约订单明细列表
     *
     * @param appointmentOrderDetails 预约订单明细
     * @return 预约订单明细集合
     */
    List<AppointmentOrderDetails> selectAppointmentOrderDetailsList(AppointmentOrderDetails appointmentOrderDetails);

    /**
     * 新增预约订单明细
     *
     * @param appointmentOrderDetails 预约订单明细
     * @return 结果
     */
    int insertAppointmentOrderDetails(AppointmentOrderDetails appointmentOrderDetails);

    /**
     * 修改预约订单明细
     *
     * @param appointmentOrderDetails 预约订单明细
     * @return 结果
     */
    int updateAppointmentOrderDetails(AppointmentOrderDetails appointmentOrderDetails);

    /**
     * 逻辑批量删除预约订单明细
     *
     * @param ids 需要删除的预约订单明细主键集合
     * @return 结果
     */
    AjaxResult updateAppointmentOrderDetailsByIds(Long[] ids);

    /**
     * 删除预约订单明细信息
     *
     * @param id 预约订单明细主键
     * @return 结果
     */
    int deleteAppointmentOrderDetailsById(Long id);

    /**
     * 预约订单管理列表页面查看明细
     *
     * @param orderNo 订单编号
     * @return com.xinyilu.base.vo.appointmentorderdetails.AppointmentOrderDetailsVO
     **/
    AppointmentOrderDetailsVO getAppointmentOrderDetailsByDetailed(String orderNo);


    /**
     * 根据订单编号查询预约订单信息
     *
     * @param orderNo 订单编号
     * @return 信息
     */
    AjaxResult getCancelAppointmentOrderInfo(String orderNo);

    /**
     * 修改陪诊陪护预约订单信息
     *
     * @param appointmentOrderDetailsDTO 预约订单信息
     * @return 结果
     */
    AjaxResult updateAppointmentOrderInfo(AppointmentOrderDetailsDTO appointmentOrderDetailsDTO);
}