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

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

@@ -116,7 +116,7 @@ namespace GxPress.Repository.Implement
         public async Task<IEnumerable<Department>> GetListAsync(DepartmentUserRequest request)
         {
             return await _repository.GetAllAsync(Q.Where(nameof(Department.ParentId), request.DepartmentId)
-                .WhereNot(nameof(Department.Id), request.SourceDepartmentId).OrderByDesc(nameof(Department.Sort)));
+                .WhereNot(nameof(Department.Id), request.SourceDepartmentId).OrderBy(nameof(Department.Sort)));
         }
 
         /// <summary>