package com.goafanti.common.dao;

import com.goafanti.common.model.PatentNew;
import com.goafanti.common.model.PatentNewExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PatentNewMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Wed May 08 14:33:37 CST 2019
	 */
	long countByExample(PatentNewExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Wed May 08 14:33:37 CST 2019
	 */
	int deleteByExample(PatentNewExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Wed May 08 14:33:37 CST 2019
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Wed May 08 14:33:37 CST 2019
	 */
	int insert(PatentNew record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Wed May 08 14:33:37 CST 2019
	 */
	int insertSelective(PatentNew record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Wed May 08 14:33:37 CST 2019
	 */
	List<PatentNew> selectByExample(PatentNewExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Wed May 08 14:33:37 CST 2019
	 */
	PatentNew selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Wed May 08 14:33:37 CST 2019
	 */
	int updateByExampleSelective(@Param("record") PatentNew record, @Param("example") PatentNewExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Wed May 08 14:33:37 CST 2019
	 */
	int updateByExample(@Param("record") PatentNew record, @Param("example") PatentNewExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Wed May 08 14:33:37 CST 2019
	 */
	int updateByPrimaryKeySelective(PatentNew record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Wed May 08 14:33:37 CST 2019
	 */
	int updateByPrimaryKey(PatentNew record);

	List<PatentNew> AllselectStartPatentNew();
	
	List<PatentNew> AllselectEndPatentNew();

	void updateAdmin(@Param("aid")String aid, @Param("transferId")String transferId);
}