package com.jwipc.inquiry.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.inquiry.entity.InquirySupplier;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.inquiry.model.po.InquirySupplierPO;
import com.jwipc.inquiry.model.po.InquirySupplierQuotePO;
import com.jwipc.inquiry.model.query.InquirySupplierQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 询价供应商表（与询价表一对一） Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-22
 */
public interface InquirySupplierMapper extends BaseMapper<InquirySupplier> {

    List<InquirySupplierQuotePO> findPageByQuery(@Param("query") InquirySupplierQuery query);

    List<InquirySupplierQuotePO> findPageByQuery(Page<InquirySupplier> dbPage, @Param("query") InquirySupplierQuery query);

    List<InquirySupplierPO> listByInquiryId(@Param("inquiryId") Long inquiryId);
}
