package com.jwipc.inquiry.mapper;

import com.jwipc.inquiry.entity.InquiryTemplateFieldRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.inquiry.model.po.InquiryTemplateFieldPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 询价模板和字段关联表 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-04
 */
public interface InquiryTemplateFieldRelationMapper extends BaseMapper<InquiryTemplateFieldRelation> {

    List<InquiryTemplateFieldPO> getFieldByTemplateIdAndFieldGroup(@Param("templateId") Long templateId, @Param("fieldGroup") Integer fieldGroup);

    List<InquiryTemplateFieldPO> getFieldByTemplateCodeAndFieldGroup(@Param("templateCode") String templateCode, @Param("fieldGroup") Integer fieldGroup,@Param("supplierLookFlag") Integer supplierLookFlag);

    List<InquiryTemplateFieldPO> getFixFieldByTemplateCodeAndFieldGroup(@Param("templateCode") String templateCode, @Param("fieldGroup") Integer fieldGroup, @Param("fixLookFlag") Integer fixLookFlag);
}
