package com.goafanti.common.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.goafanti.business.bo.JtBusinessProjectResult;
import com.goafanti.common.model.JtBusinessProject;
import com.goafanti.common.model.JtBusinessProjectExample;

public interface JtBusinessProjectMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
	 */
	long countByExample(JtBusinessProjectExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
	 */
	int deleteByExample(JtBusinessProjectExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
	 */
	int insert(JtBusinessProject record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
	 */
	int insertSelective(JtBusinessProject record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
	 */
	List<JtBusinessProject> selectByExample(JtBusinessProjectExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
	 */
	JtBusinessProject selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
	 */
	int updateByExampleSelective(@Param("record") JtBusinessProject record,
			@Param("example") JtBusinessProjectExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
	 */
	int updateByExample(@Param("record") JtBusinessProject record, @Param("example") JtBusinessProjectExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
	 */
	int updateByPrimaryKeySelective(JtBusinessProject record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table jt_business_project
	 * @mbg.generated  Wed Aug 01 10:34:40 CST 2018
	 */
	int updateByPrimaryKey(JtBusinessProject record);

	List<JtBusinessProject> getBusinessProjectByCategoryId(@Param("id")String id,@Param("size")Integer size,@Param("isHot")Integer isHot);
     
  List<JtBusinessProject> findProjectOrderByNumber();
  
  int deleteByIdAndUid(String id,String uid);
  
	JtBusinessProjectResult selectByPrimaryKeyWithModule(@Param("id")String id,@Param("uid")String uid);
  
	List<JtBusinessProject> getKJListByIds(@Param("module")Integer module, @Param("isHot")Integer isHost, @Param("size")Integer size);
	List<JtBusinessProject> getModuleByName(@Param("name")String name, @Param("isHot")Integer isHost, @Param("size")Integer size);

	JtBusinessProject selectFirstLevel(String id);
     
	List<JtBusinessProject> getProjectByTag(@Param("name")String name, @Param("size")Integer size);
  
}