package com.jwipc.inquiry.mapper;

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

import java.util.List;

/**
 * <p>
 * 询价成本构成模板 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-21
 */
public interface InquiryCostTemplateMapper extends BaseMapper<InquiryCostTemplate> {

    List<InquiryCostTemplatePO> findPageByQuery(@Param("query") InquiryCostTemplateQuery query);

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

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