package com.goafanti.common.dao;

import com.goafanti.common.model.PersonnelDossier;
import com.goafanti.common.model.PersonnelDossierExample;
import com.goafanti.personnel.bo.OutPersonnelBo;

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

public interface PersonnelDossierMapper {
    /**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_dossier
	 * @mbg.generated  Wed May 20 08:47:14 CST 2020
	 */
	long countByExample(PersonnelDossierExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_dossier
	 * @mbg.generated  Wed May 20 08:47:14 CST 2020
	 */
	int deleteByExample(PersonnelDossierExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_dossier
	 * @mbg.generated  Wed May 20 08:47:14 CST 2020
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_dossier
	 * @mbg.generated  Wed May 20 08:47:14 CST 2020
	 */
	int insert(PersonnelDossier record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_dossier
	 * @mbg.generated  Wed May 20 08:47:14 CST 2020
	 */
	int insertSelective(PersonnelDossier record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_dossier
	 * @mbg.generated  Wed May 20 08:47:14 CST 2020
	 */
	List<PersonnelDossier> selectByExample(PersonnelDossierExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_dossier
	 * @mbg.generated  Wed May 20 08:47:14 CST 2020
	 */
	PersonnelDossier selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_dossier
	 * @mbg.generated  Wed May 20 08:47:14 CST 2020
	 */
	int updateByExampleSelective(@Param("record") PersonnelDossier record,
			@Param("example") PersonnelDossierExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_dossier
	 * @mbg.generated  Wed May 20 08:47:14 CST 2020
	 */
	int updateByExample(@Param("record") PersonnelDossier record, @Param("example") PersonnelDossierExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_dossier
	 * @mbg.generated  Wed May 20 08:47:14 CST 2020
	 */
	int updateByPrimaryKeySelective(PersonnelDossier record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_dossier
	 * @mbg.generated  Wed May 20 08:47:14 CST 2020
	 */
	int updateByPrimaryKey(PersonnelDossier record);

	int checkDoorId(@Param("doorId")Integer doorId, @Param("id")Integer id);

	OutPersonnelBo selectBypdId(Integer id);

	int checkEmployeeId(@Param("employeeId")Integer employeeId, @Param("id")Integer id);
}