package com.goafanti.common.dao;

import com.goafanti.common.model.JtBusinessCategory;
import com.goafanti.common.model.JtBusinessCategoryExample;
import com.goafanti.common.model.JtBusinessProject;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface JtBusinessCategoryMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_business_category
     *
     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
     */
    long countByExample(JtBusinessCategoryExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_business_category
     *
     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
     */
    int deleteByExample(JtBusinessCategoryExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_business_category
     *
     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
     */
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_business_category
     *
     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
     */
    int insert(JtBusinessCategory record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_business_category
     *
     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
     */
    int insertSelective(JtBusinessCategory record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_business_category
     *
     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
     */
    List<JtBusinessCategory> selectByExample(JtBusinessCategoryExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_business_category
     *
     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
     */
    JtBusinessCategory selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_business_category
     *
     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
     */
    int updateByExampleSelective(@Param("record") JtBusinessCategory record, @Param("example") JtBusinessCategoryExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_business_category
     *
     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
     */
    int updateByExample(@Param("record") JtBusinessCategory record, @Param("example") JtBusinessCategoryExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_business_category
     *
     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
     */
    int updateByPrimaryKeySelective(JtBusinessCategory record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table jt_business_category
     *
     * @mbg.generated Wed Jun 20 11:08:54 CST 2018
     */
    int updateByPrimaryKey(JtBusinessCategory record);
    
    JtBusinessCategory getBusinessCategoryByLayerAndName(Integer layer, String name);
    
    List<JtBusinessCategory> getBusinessCategoryBySuperId(String id,Integer size);
    
}