package com.jwipc.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.order.entity.AppointmentRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.order.model.po.AppointmentRecordPO;
import com.jwipc.order.model.po.AppointmentShowMainPO;
import com.jwipc.order.model.po.AppointmentSupplierPO;
import com.jwipc.order.model.po.DeliveryDetailRecordPO;
import com.jwipc.order.model.query.AppointmentRecordQuery;
import com.jwipc.order.model.query.AppointmentShowTimeQuery;

import java.util.List;

/**
 * <p>
 * 送货单预约记录表 服务类
 * </p>
 *
 * @author WT
 * @since 2024-03-05
 */
public interface IAppointmentRecordService extends IService<AppointmentRecord> {
    /**
     * 查询列表
     * @param dbPage
     * @param query
     * @return
     */
    List<AppointmentRecordPO> findPageByQuery(Page<AppointmentRecord> dbPage, AppointmentRecordQuery query);

    /**
     *仓库预约看板查询
     * @param query
     * @return
     */
    AppointmentShowMainPO appointmentShow(AppointmentShowTimeQuery query);

    /**
     *根据预约记录查询送货单明细行数据
     * @param dbPage
     * @param query
     * @return
     */
    List<DeliveryDetailRecordPO> deliveryDetailsRecord(Page<AppointmentRecord> dbPage, AppointmentRecordQuery query);
}
