package com.goafanti.common.dao;

import com.goafanti.common.model.PersonnelPromotion;
import com.goafanti.common.model.PersonnelPromotionExample;
import com.goafanti.personnel.bo.PersonnelPromotionBo;

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

public interface PersonnelPromotionMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_promotion
	 * @mbg.generated  Sun Apr 26 10:10:12 CST 2020
	 */
	long countByExample(PersonnelPromotionExample example);

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

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

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

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

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

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

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

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

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

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

	List<PersonnelPromotionBo> selectBypdId(Integer id);
}