李昊 4 年之前
父節點
當前提交
bef7ac0146
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      GxPress/Repository/GxPress.Repository.Implement/AddressBookGroupRepository.cs

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