package com.goafanti.common.dao;

import com.goafanti.common.model.PatentNew;
import com.goafanti.common.model.PatentNewLog;
import com.goafanti.patent.bo.PatentNewBo;

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  Mon Aug 09 14:41:21 CST 2021
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Mon Aug 09 14:41:21 CST 2021
	 */
	int insert(PatentNew record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Mon Aug 09 14:41:21 CST 2021
	 */
	int insertSelective(PatentNew record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Mon Aug 09 14:41:21 CST 2021
	 */
	PatentNew selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Mon Aug 09 14:41:21 CST 2021
	 */
	int updateByPrimaryKeySelective(PatentNew record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table patent_new
	 * @mbg.generated  Mon Aug 09 14:41:21 CST 2021
	 */
	int updateByPrimaryKey(PatentNew record);

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

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



	void insertBatch(List<PatentNew> list2);

	Integer selectByPatenNo(String patentNo);

	List<PatentNew> selectByYear(int i);

	void updateBatch(@Param("list") List<String> list);


	List<PatentNew> selectByids(List<String> s);

	String selectUserNameByTid(Integer tid);

	void updateBatchByid(@Param("list")List<String> list, @Param("status")Integer status, @Param("aid")String aid);

	List<PatentNew> selectByTid(Integer tid);


}