李昊 4 years ago
parent
commit
4a2bee6dca

+ 1 - 1
GxPress/Repository/GxPress.Repository.Implement/WorkFlow/FlowTodoRepository.cs

@@ -192,7 +192,7 @@ namespace GxPress.Repository.Implement.WorkFlow
                     sql += $" AND b.Id IN ({processId})";
                 }
             }
-            sql += $") ORDER BY a.CreatedDate DESC limit {(request.Page - 1) * request.PerPage},{request.PerPage}";
+            sql += $") ORDER BY CreatedDate DESC limit {(request.Page - 1) * request.PerPage},{request.PerPage}";
             var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
             var database = new Database(databaseType, _connectionString);
             var connection = database.GetConnection();