李昊 %!s(int64=4) %!d(string=hai) anos
pai
achega
bef7ac0146

+ 1 - 1
GxPress/Repository/GxPress.Repository.Implement/AddressBookGroupRepository.cs

@@ -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));