package com.goafanti.common.dao;

import com.goafanti.common.model.PersonnelContract;
import com.goafanti.common.model.PersonnelContractExample;
import com.goafanti.personnel.bo.PersonnelContractBo;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PersonnelContractMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_contract
     *
     * @mbg.generated Sun Apr 26 10:16:37 CST 2020
     */
    long countByExample(PersonnelContractExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_contract
     *
     * @mbg.generated Sun Apr 26 10:16:37 CST 2020
     */
    int deleteByExample(PersonnelContractExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_contract
     *
     * @mbg.generated Sun Apr 26 10:16:37 CST 2020
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_contract
     *
     * @mbg.generated Sun Apr 26 10:16:37 CST 2020
     */
    int insert(PersonnelContract record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_contract
     *
     * @mbg.generated Sun Apr 26 10:16:37 CST 2020
     */
    int insertSelective(PersonnelContract record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_contract
     *
     * @mbg.generated Sun Apr 26 10:16:37 CST 2020
     */
    List<PersonnelContract> selectByExample(PersonnelContractExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_contract
     *
     * @mbg.generated Sun Apr 26 10:16:37 CST 2020
     */
    PersonnelContract selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_contract
     *
     * @mbg.generated Sun Apr 26 10:16:37 CST 2020
     */
    int updateByExampleSelective(@Param("record") PersonnelContract record, @Param("example") PersonnelContractExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_contract
     *
     * @mbg.generated Sun Apr 26 10:16:37 CST 2020
     */
    int updateByExample(@Param("record") PersonnelContract record, @Param("example") PersonnelContractExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_contract
     *
     * @mbg.generated Sun Apr 26 10:16:37 CST 2020
     */
    int updateByPrimaryKeySelective(PersonnelContract record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_contract
     *
     * @mbg.generated Sun Apr 26 10:16:37 CST 2020
     */
    int updateByPrimaryKey(PersonnelContract record);

	List<PersonnelContractBo> selectBypdId(Integer id);
}