package com.nokia.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nokia.pojo.UserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/*
 * 已弃用代码
 */
@Deprecated
@Mapper
public interface UserRoleDao extends BaseMapper<UserRole> {

    @Select("select role_id from sqmdb_rpt.acl_user_role where user_id = #{userId} and role_id= #{role_id}")
    Integer hasRole(Integer userId, Integer role_id);
}
