|
@@ -291,7 +291,7 @@ namespace GxPress.Repository.Implement.Collection
|
|
|
tede_collection a
|
|
|
INNER JOIN
|
|
|
tede_middle b ON a.Id = b.MiddleId AND b.FolderType ={collectionContsValue} {sqlStr}
|
|
|
- AND a.UserId ={request.UserId} and b.IsDelete=0 order by a.IsTop desc ,a.CreatedDate desc limit {(request.Page - 1) * request.PerPage},{request.PerPage} ";
|
|
|
+ AND a.UserId ={request.UserId} and b.IsDelete=0 order by a.IsTop desc ,a.LastModifiedDate 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();
|