李昊 4 년 전
부모
커밋
b061b41e80
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      gx_api/GxPress/Repository/GxPress.Repository.Implement/GroupRepository.cs

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

@@ -452,7 +452,7 @@ namespace GxPress.Repository.Implement
                         FROM
                             tede_group a
                         WHERE
-                            a.GroupCategroyId = {categoryId} and a.IsShow=1";
+                            a.GroupCategroyId = {categoryId} and a.IsShow=1 order by a.Sort desc";
             if (userId > 0)
             {
                 sql = $@"SELECT 
@@ -474,7 +474,7 @@ namespace GxPress.Repository.Implement
                                             AND DisposeType = 0
                                             AND SourceId = a.Id limit 1) as IsApply
                             FROM
-                                tede_group a where a.GroupCategroyId = {categoryId} and a.IsShow=1";
+                                tede_group a where a.GroupCategroyId = {categoryId} and a.IsShow=1 order by a.Sort desc";
             }
             var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
             var database = new Database(databaseType, _connectionString);