package com.goafanti.common.dao;

import com.goafanti.common.model.PersonnelChoose;
import com.goafanti.common.model.PersonnelChooseExample;
import com.goafanti.personnel.bo.PersonnelChooseBo;

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

public interface PersonnelChooseMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_choose
     *
     * @mbg.generated Sun Apr 26 10:31:26 CST 2020
     */
    long countByExample(PersonnelChooseExample example);

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_choose
     *
     * @mbg.generated Sun Apr 26 10:31:26 CST 2020
     */
    List<PersonnelChoose> selectByExample(PersonnelChooseExample example);

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_choose
     *
     * @mbg.generated Sun Apr 26 10:31:26 CST 2020
     */
    int updateByExampleSelective(@Param("record") PersonnelChoose record, @Param("example") PersonnelChooseExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_choose
     *
     * @mbg.generated Sun Apr 26 10:31:26 CST 2020
     */
    int updateByExample(@Param("record") PersonnelChoose record, @Param("example") PersonnelChooseExample example);

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

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

	List<PersonnelChooseBo> selectBypdId(Integer id);
}