李昊 4 jaren geleden
bovenliggende
commit
b061b41e80
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  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);