package com.xinelu.manage.mapper.appointmentorderdetails;



import com.xinelu.manage.domain.appointmentorderdetails.AppointmentOrderDetails;
import com.xinelu.manage.vo.CancelAppointmentOrderVO;
import com.xinelu.manage.vo.appointmentorder.AppointmentOrderRecordVO;
import com.xinelu.manage.vo.appointmentorder.AppointmentReceivingOrderVO;
import com.xinelu.manage.vo.appointmentorderdetails.AppointmentOrderDetailsVO;

import java.util.List;

/**
 * 预约订单明细Mapper接口
 *
 * @author 纪寒
 * @date 2022-09-05
 */
public interface AppointmentOrderDetailsMapper {
    /**
     * 查询预约订单明细
     *
     * @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 id 预约订单明细主键
     * @return 结果
     */
    int deleteAppointmentOrderDetailsById(Long id);

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

    /**
     * 根据预约订单编号逻辑批量删除预约订单明细
     *
     * @param orderNo 预约订单编号
     * @return int 结果
     **/
    int updateAppointmentOrderDetailsOrderNoByIds(String orderNo);

    /**
     * 根据预约订单编号查询对应的id信息
     *
     * @param orderNo 预约订单编号
     * @return java.util.List<com.xinyilu.base.domain.appointmentorderdetails.AppointmentOrderDetails>
     **/
    List<AppointmentOrderDetails> getAppointmentOrderDetailsOrderNoByIds(String orderNo);


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

    /**
     * 根据订单id查询所有信息
     *
     * @param orderNo 订单编号
     * @return com.xinyilu.base.vo.appointmentorderdetails.AppointmentOrderDetailsVO
     **/
    List<AppointmentOrderDetails> getOrderNoList(String orderNo);

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

    /**
     * 护理员App任务完成
     *
     * @param appointmentOrderDetails 完成信息
     * @return int
     */
    int updateOrderDetailsById(AppointmentOrderDetails appointmentOrderDetails);

    /**
     * 根据预约订单明细表id查询预约订单表信息
     *
     * @param orderNo 订单编号
     * @return com.xinyilu.base.vo.appointmentorder.AppointmentOrderRecordVO
     **/
    AppointmentOrderRecordVO selectAppointmentOrderById(String orderNo);

    /**
     * 接单退单提醒通知运营人员
     *
     * @param orderNo 订单编号
     * @return com.xinyilu.base.vo.appointmentorder.AppointmentReceivingOrderVO
     **/
    AppointmentReceivingOrderVO getAppointmentReceivingOrder(String orderNo);
}
