增加部门

This commit is contained in:
戚辰先生 2024-12-02 23:15:56 +08:00
parent c733f0c1d8
commit 9d825f3354

View File

@ -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);
} }