package com.goafanti.common.dao;

import com.goafanti.app.bo.ProjectBo;
import com.goafanti.app.bo.ProjectDetailBo;
import com.goafanti.business.bo.BusinessProjectBo;
import com.goafanti.common.model.BusinessProject;
import com.goafanti.common.model.BusinessProjectExample;
import com.goafanti.order.bo.Outproject;
import com.goafanti.common.model.BusinessCategory;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface BusinessProjectMapper {
    int deleteByPrimaryKey(String id);

    int insert(BusinessProject record);

    int insertSelective(BusinessProject record);

    BusinessProject selectByPrimaryKey(String id);

    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<BusinessProjectBo > selectBusinessProjectByName(@Param("businessName")String businessName, @Param("cname")String cname);


	 List<BusinessCategory> selectBusinessProjectCatalog();


    List<Map> selectProjectAndTypeAll();


}
