package com.goafanti.common.dao;

import com.goafanti.business.bo.ProjectBo;
import com.goafanti.business.bo.ProjectDetailBo;
import com.goafanti.common.model.BusinessProject;
import com.goafanti.common.model.BusinessProjectExample;
import com.goafanti.common.model.BusinessCategory;

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

public interface BusinessProjectMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_project
	 * @mbg.generated  Thu Dec 05 10:07:00 CST 2019
	 */
	long countByExample(BusinessProjectExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_project
	 * @mbg.generated  Thu Dec 05 10:07:00 CST 2019
	 */
	int deleteByExample(BusinessProjectExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_project
	 * @mbg.generated  Thu Dec 05 10:07:00 CST 2019
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_project
	 * @mbg.generated  Thu Dec 05 10:07:00 CST 2019
	 */
	int insert(BusinessProject record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_project
	 * @mbg.generated  Thu Dec 05 10:07:00 CST 2019
	 */
	int insertSelective(BusinessProject record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_project
	 * @mbg.generated  Thu Dec 05 10:07:00 CST 2019
	 */
	List<BusinessProject> selectByExample(BusinessProjectExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_project
	 * @mbg.generated  Thu Dec 05 10:07:00 CST 2019
	 */
	BusinessProject selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_project
	 * @mbg.generated  Thu Dec 05 10:07:00 CST 2019
	 */
	int updateByExampleSelective(@Param("record") BusinessProject record,
			@Param("example") BusinessProjectExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_project
	 * @mbg.generated  Thu Dec 05 10:07:00 CST 2019
	 */
	int updateByExample(@Param("record") BusinessProject record, @Param("example") BusinessProjectExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_project
	 * @mbg.generated  Thu Dec 05 10:07:00 CST 2019
	 */
	int updateByPrimaryKeySelective(BusinessProject record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table business_project
	 * @mbg.generated  Thu Dec 05 10:07:00 CST 2019
	 */
	int updateByPrimaryKey(BusinessProject record);

	int getBnamecount(String bname);
	
	String getCreateName(String id);
	
	BusinessProject selectByPrimaryBname(String bname);

	List<ProjectBo> getBusinessProject(String id);

	ProjectDetailBo selectAppProjectDetail(String id);

	int checkProject(String id);

	List<BusinessProject> selectBusinessProjectByName(@Param("businessName")String businessName,@Param("cid")String cid);
	
	List<ProjectBo> selectServiceProjectDetail();

	 List<BusinessCategory> selectBusinessProjectCatalog();

	
}