package com.tax.token.mapper;

import com.tax.token.model.TkToken;
import com.tax.token.model.TkTokenExample;
import com.tax.token.model.TokenReportReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TkTokenMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tk_token
     *
     * @mbggenerated Fri Feb 09 11:37:57 CST 2018
     */
    int countByExample(TkTokenExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tk_token
     *
     * @mbggenerated Fri Feb 09 11:37:57 CST 2018
     */
    int deleteByExample(TkTokenExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tk_token
     *
     * @mbggenerated Fri Feb 09 11:37:57 CST 2018
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tk_token
     *
     * @mbggenerated Fri Feb 09 11:37:57 CST 2018
     */
    int insert(TkToken record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tk_token
     *
     * @mbggenerated Fri Feb 09 11:37:57 CST 2018
     */
    int insertSelective(TkToken record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tk_token
     *
     * @mbggenerated Fri Feb 09 11:37:57 CST 2018
     */
    List<TkToken> selectByExample(TkTokenExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tk_token
     *
     * @mbggenerated Fri Feb 09 11:37:57 CST 2018
     */
    TkToken selectByPrimaryKey(Integer id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tk_token
     *
     * @mbggenerated Fri Feb 09 11:37:57 CST 2018
     */
    int updateByExampleSelective(@Param("record") TkToken record, @Param("example") TkTokenExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tk_token
     *
     * @mbggenerated Fri Feb 09 11:37:57 CST 2018
     */
    int updateByExample(@Param("record") TkToken record, @Param("example") TkTokenExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tk_token
     *
     * @mbggenerated Fri Feb 09 11:37:57 CST 2018
     */
    int updateByPrimaryKeySelective(TkToken record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table tk_token
     *
     * @mbggenerated Fri Feb 09 11:37:57 CST 2018
     */
    int updateByPrimaryKey(TkToken record);

    List<TkToken> selectErrorTokenList(@Param("userCode") String userCode, @Param("id") Integer id, @Param("pageNum") Integer pageNum);

    int updateTokenInfo(TkToken record);

    List<TkToken> selectTokenListByErrorCode(@Param("userCode") String userCode,
                                             @Param("errorCode") String errorCode, @Param("zoneCode") String zoneCode);
    List<TkToken> selectTokenListPage(TokenReportReq tokenReportReq);
}