package com.wx.application.core.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wx.application.core.entity.OntologyField;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zj
 * @since 2022-09-25
 */
@Repository
public interface OntologyFieldMapper extends BaseMapper<OntologyField> {
	int countByOntologyId(@Param("ontologyId") Long ontologyId);
	
	OntologyField findByOntologyIdAndLabel(@Param("ontologyId") Long ontologyId,
			@Param("field") String field);
}
