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.OntologyRelation;

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