package com.jwipc.inquiry.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.inquiry.entity.InquiryTemplate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.inquiry.model.po.InquiryTemplatePO;
import com.jwipc.inquiry.model.query.InquiryTemplateQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 询价模板表 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-04
 */
public interface InquiryTemplateMapper extends BaseMapper<InquiryTemplate> {

    List<InquiryTemplatePO> findPageByQuery(@Param("query") InquiryTemplateQuery query);

    List<InquiryTemplatePO> findPageByQuery(Page<InquiryTemplate> dbPage, @Param("query") InquiryTemplateQuery query);

    List<InquiryTemplatePO> getAllListByPurchaseGroupCode(@Param("purchaseGroupCode") String purchaseGroupCode);
}
