|
@@ -368,7 +368,7 @@ namespace GxPress.Service.Implement
|
|
|
var user = await _userRepository.GetAsync(userId);
|
|
|
//单位通讯录
|
|
|
var userLinkResult = new List<UserLinkModelResult>();
|
|
|
- var departmentCount = await friendsRepository.GetFriendsIdsAsync(userId, -1);
|
|
|
+ var departmentCount = await departmentUserRepository.GetDepartmentIdsAsync(userId);
|
|
|
if (departmentCount.Count() > 0)
|
|
|
{
|
|
|
var departments = await _departmentRepository.GetAllAsync(Q.Where(nameof(Entity.Department.ParentId), 0));
|