|
@@ -210,6 +210,7 @@ namespace GxPress.Service.Implement
|
|
|
// departmentName =
|
|
|
// await _departmentRepository.GetDepartmentFullPathAsync(item.DepartmentId, departmentName);
|
|
|
// item.DepartmentName = departmentName;
|
|
|
+ item.DepartmentId = await departmentUserRepository.GetDepartmentIdsAsync(item.Id);
|
|
|
var role = await _roleRepository.GetAsync(item.RoleId);
|
|
|
if (role != null)
|
|
|
item.RoleName = role.Name;
|
|
@@ -424,6 +425,10 @@ namespace GxPress.Service.Implement
|
|
|
{
|
|
|
await departmentUserRepository.AddDepartmentUserAsync(request.DepartmentId, id);
|
|
|
}
|
|
|
+ if (!string.IsNullOrEmpty(request.DepartmentName))
|
|
|
+ {
|
|
|
+ user.DepartmentName = request.DepartmentName;
|
|
|
+ }
|
|
|
if (!string.IsNullOrEmpty(request.Nick))
|
|
|
user.Nick = request.Nick;
|
|
|
if (!string.IsNullOrEmpty(request.Description))
|