package com.goafanti.common.dao;

import com.goafanti.common.model.PersonnelLevel;
import com.goafanti.common.model.PersonnelLevelExample;
import com.goafanti.personnel.bo.OutPersonnelLvlBo;

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

public interface PersonnelLevelMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    long countByExample(PersonnelLevelExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    int deleteByExample(PersonnelLevelExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    int insert(PersonnelLevel record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    int insertSelective(PersonnelLevel record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    List<PersonnelLevel> selectByExample(PersonnelLevelExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    PersonnelLevel selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    int updateByExampleSelective(@Param("record") PersonnelLevel record, @Param("example") PersonnelLevelExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    int updateByExample(@Param("record") PersonnelLevel record, @Param("example") PersonnelLevelExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    int updateByPrimaryKeySelective(PersonnelLevel record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table personnel_level
     *
     * @mbg.generated Wed Apr 29 14:40:21 CST 2020
     */
    int updateByPrimaryKey(PersonnelLevel record);

	List<OutPersonnelLvlBo> selectAll();
}