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