package com.tax.user.mapper;

import com.tax.user.model.SysServerFunction;
import com.tax.user.model.SysServerFunctionExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysServerFunctionMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_server_function
     *
     * @mbggenerated Tue Dec 04 11:44:07 CST 2018
     */
    int countByExample(SysServerFunctionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_server_function
     *
     * @mbggenerated Tue Dec 04 11:44:07 CST 2018
     */
    int deleteByExample(SysServerFunctionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_server_function
     *
     * @mbggenerated Tue Dec 04 11:44:07 CST 2018
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_server_function
     *
     * @mbggenerated Tue Dec 04 11:44:07 CST 2018
     */
    int insert(SysServerFunction record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_server_function
     *
     * @mbggenerated Tue Dec 04 11:44:07 CST 2018
     */
    int insertSelective(SysServerFunction record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_server_function
     *
     * @mbggenerated Tue Dec 04 11:44:07 CST 2018
     */
    List<SysServerFunction> selectByExample(SysServerFunctionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_server_function
     *
     * @mbggenerated Tue Dec 04 11:44:07 CST 2018
     */
    SysServerFunction selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_server_function
     *
     * @mbggenerated Tue Dec 04 11:44:07 CST 2018
     */
    int updateByExampleSelective(@Param("record") SysServerFunction record, @Param("example") SysServerFunctionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_server_function
     *
     * @mbggenerated Tue Dec 04 11:44:07 CST 2018
     */
    int updateByExample(@Param("record") SysServerFunction record, @Param("example") SysServerFunctionExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_server_function
     *
     * @mbggenerated Tue Dec 04 11:44:07 CST 2018
     */
    int updateByPrimaryKeySelective(SysServerFunction record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_server_function
     *
     * @mbggenerated Tue Dec 04 11:44:07 CST 2018
     */
    int updateByPrimaryKey(SysServerFunction record);

     SysServerFunction queryFunctionByUser(@Param("userName")String userName);

    List<SysServerFunction> queryFunctionList(@Param("userName")String userName);
}