package com.goafanti.common.dao;

import com.goafanti.common.model.SkjtUser;
import com.goafanti.common.model.SkjtUserExample;
import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

public interface SkjtUserMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table skjt_user
     *
     * @mbg.generated Wed Jul 22 11:24:17 CST 2020
     */
    long countByExample(SkjtUserExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table skjt_user
     *
     * @mbg.generated Wed Jul 22 11:24:17 CST 2020
     */
    int deleteByExample(SkjtUserExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table skjt_user
     *
     * @mbg.generated Wed Jul 22 11:24:17 CST 2020
     */
    int deleteByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table skjt_user
     *
     * @mbg.generated Wed Jul 22 11:24:17 CST 2020
     */
    int insert(SkjtUser record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table skjt_user
     *
     * @mbg.generated Wed Jul 22 11:24:17 CST 2020
     */
    int insertSelective(SkjtUser record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table skjt_user
     *
     * @mbg.generated Wed Jul 22 11:24:17 CST 2020
     */
    List<SkjtUser> selectByExample(SkjtUserExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table skjt_user
     *
     * @mbg.generated Wed Jul 22 11:24:17 CST 2020
     */
    SkjtUser selectByPrimaryKey(String id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table skjt_user
     *
     * @mbg.generated Wed Jul 22 11:24:17 CST 2020
     */
    int updateByExampleSelective(@Param("record") SkjtUser record, @Param("example") SkjtUserExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table skjt_user
     *
     * @mbg.generated Wed Jul 22 11:24:17 CST 2020
     */
    int updateByExample(@Param("record") SkjtUser record, @Param("example") SkjtUserExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table skjt_user
     *
     * @mbg.generated Wed Jul 22 11:24:17 CST 2020
     */
    int updateByPrimaryKeySelective(SkjtUser record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table skjt_user
     *
     * @mbg.generated Wed Jul 22 11:24:17 CST 2020
     */
    int updateByPrimaryKey(SkjtUser record);

	SkjtUser selectByAccount(String account);

	Set<String> findRoleByUserId(String userId);

	Set<String> findPermissionByUserId(String userId);

	void setUserRole(String id);
}