12345678910111213141516 |
- package com.nokia.dao;
- import com.baomidou.mybatisplus.core.mapper.BaseMapper;
- import com.nokia.pojo.RoleEntity;
- import java.util.List;
- import org.apache.ibatis.annotations.Mapper;
- import org.apache.ibatis.annotations.Select;
- @Mapper
- public interface RoleDao extends BaseMapper<RoleEntity> {
- @Select("select r.role_id, r.role_name, r.system from sqmdb_rpt.acl_role r, sqmdb_rpt.acl_user_role ur where r.role_id = ur.role_id and ur.user_id = #{userId}")
- List<RoleEntity> findByUserId(Integer userId);
- }
|