package com.tax.user.mapper;

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

import java.util.List;

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

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

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

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

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

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

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

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

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

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

    boolean checkUserOwnTaxno(RuleModel model);

    List<SysUserTaxno> queryUserTaxnoList(@Param("userName")String userName);
}