|
@@ -48,7 +48,7 @@ namespace GxPress.Service.Implement.Department
|
|
|
var departments = new List<Entity.Department>();
|
|
|
await _departmentRepository.GetDepartmentById(item.Id, departments);
|
|
|
var userIds = await departmentUserRepository.GetUserIdsByDepartmentIdsAsync(departments.Select(n => n.Id));
|
|
|
- item.UserCount = userIds.Count();
|
|
|
+ item.UserCount = userIds.Distinct().Count();
|
|
|
}
|
|
|
|
|
|
}
|