package com.jwipc.order.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.order.entity.AppointmentSupplier;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.order.model.po.AppointmentSupplierPO;
import com.jwipc.order.model.query.AppointmentSupplierQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 送货单预约供应商配置 Mapper 接口
 * </p>
 *
 * @author WT
 * @since 2024-03-04
 */
public interface AppointmentSupplierMapper extends BaseMapper<AppointmentSupplier> {
    /**
     * 查询列表
     * @param query
     * @return
     */
    List<AppointmentSupplierPO> findPageByQuery(@Param("query") AppointmentSupplierQuery query);

    /**
     * 查询列表含分页参数
     * @param dbPage
     * @param query
     * @return
     */
    List<AppointmentSupplierPO> findPageByQuery(@Param("dbPage") Page<AppointmentSupplier> dbPage, @Param("query") AppointmentSupplierQuery query);
}
