package com.goafanti.common.dao;

import com.goafanti.business.bo.BusinessVarietiesBo;
import com.goafanti.business.bo.VarietiesBo;
import com.goafanti.common.model.BusinessCategory;
import com.goafanti.common.model.BusinessCategoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BusinessCategoryMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_varieties
	 * @mbg.generated  Tue Jan 09 15:08:39 CST 2018
	 */
	long countByExample(BusinessCategoryExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_varieties
	 * @mbg.generated  Tue Jan 09 15:08:39 CST 2018
	 */
	int deleteByExample(BusinessCategoryExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_varieties
	 * @mbg.generated  Tue Jan 09 15:08:39 CST 2018
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_varieties
	 * @mbg.generated  Tue Jan 09 15:08:39 CST 2018
	 */
	int insert(BusinessCategory record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_varieties
	 * @mbg.generated  Tue Jan 09 15:08:39 CST 2018
	 */
	int insertSelective(BusinessCategory record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_varieties
	 * @mbg.generated  Tue Jan 09 15:08:39 CST 2018
	 */
	List<BusinessCategory> selectByExample(BusinessCategoryExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_varieties
	 * @mbg.generated  Tue Jan 09 15:08:39 CST 2018
	 */
	BusinessCategory selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_varieties
	 * @mbg.generated  Tue Jan 09 15:08:39 CST 2018
	 */
	int updateByExampleSelective(@Param("record") BusinessCategory record,
			@Param("example") BusinessCategoryExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_varieties
	 * @mbg.generated  Tue Jan 09 15:08:39 CST 2018
	 */
	int updateByExample(@Param("record") BusinessCategory record, @Param("example") BusinessCategoryExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_varieties
	 * @mbg.generated  Tue Jan 09 15:08:39 CST 2018
	 */
	int updateByPrimaryKeySelective(BusinessCategory record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_varieties
	 * @mbg.generated  Tue Jan 09 15:08:39 CST 2018
	 */
	int updateByPrimaryKey(BusinessCategory record);

	String getCount(String superId);
	
	String getCid(String superId);
	
	List<BusinessVarietiesBo> getSuperList();
	
	BusinessVarietiesBo editVarieties(@Param("id")String id);
    
	String ThanCid(String cid);
	
	int getcname(String cname);//获取有多少条
	
	List<BusinessVarietiesBo>  selectSuperid(String spuerId);
	
	String getThisCid(String id);
	
	String getThisCname(String cid);
	
	List<String> getListId();
	
	int getLayer(String superId);

	List<VarietiesBo> getVarieties();

	String getCidMax(String superId);

	String getSortMax();

	BusinessCategory selectBySort(Integer sort);

	int updateFollowSort(Integer sort);
}