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

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