package com.jwipc.inquiry.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.inquiry.entity.InquiryCostTemplate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.inquiry.model.po.InquiryCostTemplatePO;
import com.jwipc.inquiry.model.query.InquiryCostTemplateQuery;

import java.util.List;

/**
 * <p>
 * 询价成本构成模板 服务类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-21
 */
public interface IInquiryCostTemplateService extends IService<InquiryCostTemplate> {

    List<InquiryCostTemplatePO> findPageByQuery(Page<InquiryCostTemplate> dbPage, InquiryCostTemplateQuery query);

    /**
     * 根据采购组编码获取成本模板且包含全部采购组
     *
     * @param purchaseGroupCode 采购组编码
     */
    List<InquiryCostTemplatePO> getAllListByPurchaseGroupCode(String purchaseGroupCode);
}
