package com.tax.user.mapper;

import com.tax.user.model.SysRule;
import com.tax.user.model.SysRuleExample;
import com.yxcheng.token.common.model.UserReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

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

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

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

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

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

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

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

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

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

    List<SysRule> getUserRule(UserReq userReq);

    List<SysRule> queryRuleList(@Param("userName")String userName);
}