|
@@ -518,5 +518,17 @@ namespace GxPress.Service.Implement
|
|
|
var result = await _userRepository.GetSearchUserInfoResults(keyword, userIdsList);
|
|
|
return result;
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 根据部门ID获取用户
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="departentId"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public async Task<IEnumerable<UserInfoResult>> GetUserInfoByDepartentResult(int departentId)
|
|
|
+ {
|
|
|
+ var departentList = new List<Entity.Department>();
|
|
|
+ var departent = await _departmentRepository.GetDepartmentById(departentId, departentList);
|
|
|
+ var userIds = await departmentUserRepository.GetUserIdsAsync(departent.Select(n => n.Id));
|
|
|
+ return await _userRepository.GetUserInfoResultsAsync(userIds);
|
|
|
+ }
|
|
|
}
|
|
|
}
|