package com.goafanti.common.dao;

import com.goafanti.common.model.DemandPublish;
import com.goafanti.common.model.DemandPublishExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DemandPublishMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_publish
	 * @mbg.generated  Wed Jan 31 09:34:27 CST 2018
	 */
	long countByExample(DemandPublishExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_publish
	 * @mbg.generated  Wed Jan 31 09:34:27 CST 2018
	 */
	int deleteByExample(DemandPublishExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_publish
	 * @mbg.generated  Wed Jan 31 09:34:27 CST 2018
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_publish
	 * @mbg.generated  Wed Jan 31 09:34:27 CST 2018
	 */
	int insert(DemandPublish record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_publish
	 * @mbg.generated  Wed Jan 31 09:34:27 CST 2018
	 */
	int insertSelective(DemandPublish record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_publish
	 * @mbg.generated  Wed Jan 31 09:34:27 CST 2018
	 */
	List<DemandPublish> selectByExample(DemandPublishExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_publish
	 * @mbg.generated  Wed Jan 31 09:34:27 CST 2018
	 */
	DemandPublish selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_publish
	 * @mbg.generated  Wed Jan 31 09:34:27 CST 2018
	 */
	int updateByExampleSelective(@Param("record") DemandPublish record, @Param("example") DemandPublishExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_publish
	 * @mbg.generated  Wed Jan 31 09:34:27 CST 2018
	 */
	int updateByExample(@Param("record") DemandPublish record, @Param("example") DemandPublishExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_publish
	 * @mbg.generated  Wed Jan 31 09:34:27 CST 2018
	 */
	int updateByPrimaryKeySelective(DemandPublish record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table demand_publish
	 * @mbg.generated  Wed Jan 31 09:34:27 CST 2018
	 */
	int updateByPrimaryKey(DemandPublish record);
	
	int checkExisting(DemandPublish a);
}