package com.jwipc.order.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.order.entity.DeliveryOrder;
import com.jwipc.order.mapper.DeliveryOrderMapper;
import com.jwipc.order.model.query.DeliveryOrderQuery;
import com.jwipc.order.service.IDeliveryOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 送货单管理 服务实现类
 * </p>
 *
 * @author zhangjie
 * @since 2024-03-06
 */
@Service
public class DeliveryOrderServiceImpl extends ServiceImpl<DeliveryOrderMapper, DeliveryOrder> implements IDeliveryOrderService {

    @Override
    public List<DeliveryOrder> findList(Page<DeliveryOrder> page, DeliveryOrderQuery query) {
        return this.baseMapper.findList(page,query);
    }

    @Override
    public List<DeliveryOrder> findList(DeliveryOrderQuery query) {
        return this.baseMapper.findList(query);
    }

    @Override
    public List<String> findAccountStatementByOrderCode(Long id) {
        return this.baseMapper.findAccountStatementByOrderCode(id);
    }

    @Override
    public List<DeliveryOrder> selectDetailsByAppointmentIds(List<String> appointmentIDS) {
        return baseMapper.selectDetailsByAppointmentIds(appointmentIDS);
    }
}
