增加部门
This commit is contained in:
parent
c733f0c1d8
commit
9d825f3354
@ -24,7 +24,7 @@ public interface IRoleRepository extends IBaseRepository<Role, Long> {
|
|||||||
/**
|
/**
|
||||||
* 获取用户的所有角色ID
|
* 获取用户的所有角色ID
|
||||||
*/
|
*/
|
||||||
@Query(value = "SELECT role_id FROM sys_user_role WHERE user_id = :userId AND deleted = false",
|
@Query(value = "SELECT role_id FROM sys_user_role WHERE user_id = :userId",
|
||||||
nativeQuery = true)
|
nativeQuery = true)
|
||||||
List<Long> findRoleIdsByUserId(@Param("userId") Long userId);
|
List<Long> findRoleIdsByUserId(@Param("userId") Long userId);
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user