lihao 4 years ago
parent
commit
af8bd1c736

+ 2 - 2
gx_api/GxPress/Repository/GxPress.Repository.Implement/Collection/CollectionRepository.cs

@@ -120,7 +120,7 @@ namespace GxPress.Repository.Implement.Collection
                 if (!string.IsNullOrEmpty(request.SearchKey))
                     sql += $@"  AND(b.Title LIKE '%{request.SearchKey}%' OR a.FolderName LIKE '%{request.SearchKey}%')";
                 sql +=
-                    $@" ORDER BY a.AttributeValue desc,a.IsTop DESC,a.Sort desc, a.LastModifiedDate DESC";
+                    $@" ORDER BY a.AttributeValue desc,a.IsTop DESC, a.LastModifiedDate DESC,a.Sort desc";
                 if (request.Page > 0)
                     sql += $" LIMIT {(request.Page - 1) * request.PerPage},{request.PerPage}";
             }
@@ -141,7 +141,7 @@ namespace GxPress.Repository.Implement.Collection
                 }
                 else
                     sql += $" and a.ParentId={request.FolderId}";
-                sql += $@" ORDER BY  a.AttributeValue desc,a.IsTop DESC,a.Sort desc, a.LastModifiedDate DESC";
+                sql += $@" ORDER BY  a.AttributeValue desc,a.IsTop DESC, a.LastModifiedDate DESC,a.Sort desc";
                 if (request.Page > 0)
                     sql += $" LIMIT {(request.Page - 1) * request.PerPage},{request.PerPage}";
             }