|
@@ -112,7 +112,7 @@ namespace GxPress.Repository.Implement
|
|
|
{
|
|
|
var result = new AddressBookListResult();
|
|
|
//获取系统分配组
|
|
|
- var departments = await _departmentRepository.GetAllAsync(Q.Where(nameof(Department.ParentId), 0));
|
|
|
+ var departments = await _departmentRepository.GetAllAsync(Q.Where(nameof(Department.ParentId), 0).OrderBy(nameof(Department.Sort)));
|
|
|
result.Departments = departments.ToList();
|
|
|
var addressBookGroups =
|
|
|
await _repository.GetAllAsync(Q.Where(nameof(AddressBookGroup.UserId), request.UserId));
|