package com.jwipc.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.order.entity.DeliveryOrder;
import com.jwipc.order.model.query.DeliveryOrderQuery;

import java.util.List;

/**
 * <p>
 * 送货单管理 服务类
 * </p>
 *
 * @author zhangjie
 * @since 2024-03-06
 */
public interface IDeliveryOrderService extends IService<DeliveryOrder> {
    /**
     * 根据预约的id查询 预约的送货单有多少明细行
     *
     * @param appointmentIDS 预约记录的ids
     * @return 结果
     */
    List<DeliveryOrder> selectDetailsByAppointmentIds(List<String> appointmentIDS);

    List<DeliveryOrder> findList(Page<DeliveryOrder> page, DeliveryOrderQuery query);
    List<DeliveryOrder> findList( DeliveryOrderQuery query);

    /**
     * 通过送货单查找关联的对账单
     * @param id 送货单id
     * @return 关联的对账单号列表
     */
    List<String> findAccountStatementByOrderCode(Long id);
}
