lihao 4 年之前
父节点
当前提交
39212c0280
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gx_api/GxPress/Repository/GxPress.Repository.Implement/GroupRepository.cs

+ 1 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/GroupRepository.cs

@@ -224,7 +224,7 @@ namespace GxPress.Repository.Implement
                                     AND a.FolderType = {groupConst}
                                     AND a.IsDelete = 0
                                     AND (b.id > 0 OR a.AttributeValue = 2)
-                            ORDER  a.IsTop DESC ,a.LastModifiedDate DESC,a.Sort DESC
+                            ORDER by a.IsTop DESC ,a.LastModifiedDate DESC,a.Sort DESC    
                             LIMIT {(request.Page - 1) * request.PerPage} , {request.PerPage}";
             var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
             var database = new Database(databaseType, _connectionString);