add 添加按照部门id,角色id查询用户

This commit is contained in:
gssong
2024-08-24 11:16:39 +08:00
parent eb038e91dd
commit 79aee1d312
2 changed files with 38 additions and 0 deletions

View File

@ -66,4 +66,20 @@ public interface UserService {
* @return 用户ids
*/
List<Long> selectUserIdsByRoleIds(List<Long> roleIds);
/**
* 通过角色ID查询用户
*
* @param roleIds 角色ids
* @return 用户
*/
List<UserDTO> selectUsersByRoleIds(List<Long> roleIds);
/**
* 通过部门ID查询用户
*
* @param deptIds 部门ids
* @return 用户
*/
List<UserDTO> selectUsersByDeptIds(List<Long> deptIds);
}