lihao 4 年 前
コミット
7b983faf54
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      gx_api/GxPress/Repository/GxPress.Repository.Implement/Note/NoteRepository.cs

+ 1 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/Note/NoteRepository.cs

@@ -139,7 +139,7 @@ namespace GxPress.Repository.Implement.Note
                             tede_user b ON a.UserId = b.Id
                         WHERE
                             a.UserId ={request.UserId} AND a.IsDraft = 1 and a.IsTopic={request.TypeValue}
-                            {sqlStr} a.LastModifiedDate desc limit {(request.Page - 1) * request.PerPage},{request.PerPage}";
+                            {sqlStr} order by a.LastModifiedDate desc limit {(request.Page - 1) * request.PerPage},{request.PerPage}";
             var result =
                 await connection
                     .QueryAsync<NoteNotFolderPageResult>(sql);