package com.yeejoin.amos.knowledgebase.face.orm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.knowledgebase.face.orm.entity.KnowledgeTag;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  * 标签库 Mapper 接口
 * </p>
 *
 * @author 子杨
 * @since 2020-08-05
 */
public interface TagMapper extends BaseMapper<KnowledgeTag> {

    List<KnowledgeTag> queryTagByNameInPublishedDoc(String tagName);

    /**
     * 统计标签被引用数量
     * @param sequenceNbr
     * @param quoteType
     * @return
     */
    Integer queryCountByTagSeq(@Param("sequenceNbr") Long sequenceNbr, @Param("quoteType") String quoteType);
}