|
@@ -132,11 +132,11 @@ namespace GxPress.Service.Implement
|
|
|
}
|
|
|
|
|
|
var userDetail = _mapper.Map<UserDetail>(user);
|
|
|
- if (user.DepartmentId > 0)
|
|
|
- {
|
|
|
- var department = await _departmentRepository.GetAsync(user.DepartmentId);
|
|
|
- userDetail.DepartmentName = department.Name;
|
|
|
- }
|
|
|
+ // if (user.DepartmentId > 0)
|
|
|
+ // {
|
|
|
+ // var department = await _departmentRepository.GetAsync(user.DepartmentId);
|
|
|
+ // userDetail.DepartmentName = department.Name;
|
|
|
+ // }
|
|
|
userDetail.AvatarUrl = StringUtils.AddDomainMin(userDetail.AvatarUrl);
|
|
|
userDetail.HistoryAvatarUrl = StringUtils.AddDomainMin(userDetail.HistoryAvatarUrl);
|
|
|
userDetail.IsBlack = await _blacklistUserRepository.FindUserIsBlack(userId, blackUserId);
|
|
@@ -468,5 +468,12 @@ namespace GxPress.Service.Implement
|
|
|
user.DisableTiem = Convert.ToDateTime(request.DisableTiem);
|
|
|
return await _userRepository.UpdateAsync(user);
|
|
|
}
|
|
|
+
|
|
|
+ public async Task<UserInfoResult> GetUserInfoAsync(int id)
|
|
|
+ {
|
|
|
+ var result = await _userRepository.GetUserInfoAsync(id);
|
|
|
+ result.DepartmentIds = await departmentUserRepository.GetDepartmentIdsAsync(id);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}
|
|
|
}
|