package com.tax.user.mapper;

import com.tax.user.model.SysRuleIp;
import com.tax.user.model.SysRuleIpExample;
import com.yxcheng.token.common.model.RuleModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_rule_ip
     *
     * @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_rule_ip
     *
     * @mbggenerated Tue Dec 04 11:44:07 CST 2018
     */
    int insert(SysRuleIp record);

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

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

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

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

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

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

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

    boolean checkIp(RuleModel model);

    List<SysRuleIp> queryRuleIpList(@Param("userName")String userName);
}