李昊 4 years ago
parent
commit
cc84fa6850

+ 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)
         public async Task<IEnumerable<Department>> GetListAsync(DepartmentUserRequest request)
         {
         {
             return await _repository.GetAllAsync(Q.Where(nameof(Department.ParentId), request.DepartmentId)
             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>
         /// <summary>