You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
830 B
32 lines
830 B
|
|
|
|
package com.spring.modules.sys.dao;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.spring.modules.sys.entity.SysRoleEntity;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 角色管理
|
|
*
|
|
*
|
|
*/
|
|
@Mapper
|
|
public interface SysRoleDao extends BaseMapper<SysRoleEntity> {
|
|
|
|
/**
|
|
* 查询用户创建的角色ID列表
|
|
*/
|
|
List<Long> queryRoleIdList(Long createUserId);
|
|
|
|
List<Long> queryRoleIdByUserId(Long userId);
|
|
|
|
List<Long> queryRoleIdByUsername(String username);
|
|
List<Long> findRoleIdByUsername(@Param("username") String username,@Param("roleId") int roleId);
|
|
List<Long> findRoleIdByUsernameAndRoleName(@Param("username") String username, @Param("roleName") String roleName);
|
|
|
|
List<String> getSuperFlag(String userId);
|
|
}
|