package com.goafanti.common.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.goafanti.common.model.PatentPaymentDetails;

public interface PatentPaymentDetailsMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table patent_payment_details
     *
     * @mbg.generated Fri Aug 06 15:00:19 CST 2021
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table patent_payment_details
     *
     * @mbg.generated Fri Aug 06 15:00:19 CST 2021
     */
    int insert(PatentPaymentDetails record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table patent_payment_details
     *
     * @mbg.generated Fri Aug 06 15:00:19 CST 2021
     */
    int insertSelective(PatentPaymentDetails record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table patent_payment_details
     *
     * @mbg.generated Fri Aug 06 15:00:19 CST 2021
     */
    PatentPaymentDetails selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table patent_payment_details
     *
     * @mbg.generated Fri Aug 06 15:00:19 CST 2021
     */
    int updateByPrimaryKeySelective(PatentPaymentDetails record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table patent_payment_details
     *
     * @mbg.generated Fri Aug 06 15:00:19 CST 2021
     */
    int updateByPrimaryKey(PatentPaymentDetails record);

	void insertBatch(List<PatentPaymentDetails> list);

	List<PatentPaymentDetails> selectByPid(Integer id);

	void deleteByPid(Integer pid);

	PatentPaymentDetails selectByPidAndYear(@Param("pid") Integer pid, @Param("year")Integer year);
}