|
@@ -205,12 +205,13 @@ namespace GxPress.Service.Implement
|
|
|
var items = list.Select(user => _mapper.Map<UserResult>(user)).ToList();
|
|
|
foreach (var item in items)
|
|
|
{
|
|
|
+ item.AvatarUrl = StringUtils.AddDomain(item.AvatarUrl);
|
|
|
// var departmentName = string.Empty;
|
|
|
// //获取部门
|
|
|
// departmentName =
|
|
|
// await _departmentRepository.GetDepartmentFullPathAsync(item.DepartmentId, departmentName);
|
|
|
// item.DepartmentName = departmentName;
|
|
|
- item.DepartmentId = await departmentUserRepository.GetDepartmentIdsAsync(item.Id);
|
|
|
+ item.DepartmentIds = await departmentUserRepository.GetDepartmentIdsAsync(item.Id);
|
|
|
var role = await _roleRepository.GetAsync(item.RoleId);
|
|
|
if (role != null)
|
|
|
item.RoleName = role.Name;
|