package com.goafanti.common.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.goafanti.admin.bo.KnowledgeBaseBo;
import com.goafanti.common.model.JtKnowledgeBase;
import com.goafanti.common.model.JtKnowledgeBaseExample;

public interface JtKnowledgeBaseMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_knowledge_base
     *
     * @mbggenerated Wed Nov 07 10:11:18 CST 2018
     */
    int countByExample(JtKnowledgeBaseExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_knowledge_base
     *
     * @mbggenerated Wed Nov 07 10:11:18 CST 2018
     */
    int deleteByExample(JtKnowledgeBaseExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_knowledge_base
     *
     * @mbggenerated Wed Nov 07 10:11:18 CST 2018
     */
    int insert(JtKnowledgeBase record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_knowledge_base
     *
     * @mbggenerated Wed Nov 07 10:11:18 CST 2018
     */
    int insertSelective(JtKnowledgeBase record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_knowledge_base
     *
     * @mbggenerated Wed Nov 07 10:11:18 CST 2018
     */
    List<JtKnowledgeBase> selectByExampleWithBLOBs(JtKnowledgeBaseExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_knowledge_base
     *
     * @mbggenerated Wed Nov 07 10:11:18 CST 2018
     */
    List<JtKnowledgeBase> selectByExample(JtKnowledgeBaseExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_knowledge_base
     *
     * @mbggenerated Wed Nov 07 10:11:18 CST 2018
     */
    int updateByExampleSelective(@Param("record") JtKnowledgeBase record, @Param("example") JtKnowledgeBaseExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_knowledge_base
     *
     * @mbggenerated Wed Nov 07 10:11:18 CST 2018
     */
    int updateByExampleWithBLOBs(@Param("record") JtKnowledgeBase record, @Param("example") JtKnowledgeBaseExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_knowledge_base
     *
     * @mbggenerated Wed Nov 07 10:11:18 CST 2018
     */
    int updateByExample(@Param("record") JtKnowledgeBase record, @Param("example") JtKnowledgeBaseExample example);
    
    KnowledgeBaseBo getKnowledgeBaseById(JtKnowledgeBase knowledgeBase);
    int updateBySome(JtKnowledgeBase knowledgeBase);
    int addOneRead(String id);
    int addOneComment(String id);
    int addOneStar(String id);
    int nameCheck(String title);
}