package com.goafanti.common.dao;

import com.goafanti.common.model.PersonnelMid;
import com.goafanti.common.model.PersonnelMidExample;

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

public interface PersonnelMidMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_mid
	 * @mbg.generated  Thu May 07 14:15:57 CST 2020
	 */
	long countByExample(PersonnelMidExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_mid
	 * @mbg.generated  Thu May 07 14:15:57 CST 2020
	 */
	int deleteByExample(PersonnelMidExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_mid
	 * @mbg.generated  Thu May 07 14:15:57 CST 2020
	 */
	int deleteByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_mid
	 * @mbg.generated  Thu May 07 14:15:57 CST 2020
	 */
	int insert(PersonnelMid record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_mid
	 * @mbg.generated  Thu May 07 14:15:57 CST 2020
	 */
	int insertSelective(PersonnelMid record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_mid
	 * @mbg.generated  Thu May 07 14:15:57 CST 2020
	 */
	List<PersonnelMid> selectByExample(PersonnelMidExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_mid
	 * @mbg.generated  Thu May 07 14:15:57 CST 2020
	 */
	PersonnelMid selectByPrimaryKey(Integer id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_mid
	 * @mbg.generated  Thu May 07 14:15:57 CST 2020
	 */
	int updateByExampleSelective(@Param("record") PersonnelMid record, @Param("example") PersonnelMidExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_mid
	 * @mbg.generated  Thu May 07 14:15:57 CST 2020
	 */
	int updateByExample(@Param("record") PersonnelMid record, @Param("example") PersonnelMidExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_mid
	 * @mbg.generated  Thu May 07 14:15:57 CST 2020
	 */
	int updateByPrimaryKeySelective(PersonnelMid record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table personnel_mid
	 * @mbg.generated  Thu May 07 14:15:57 CST 2020
	 */
	int updateByPrimaryKey(PersonnelMid record);

	void updateByidTime(@Param("m")PersonnelMid m, @Param("type")Integer type);

}