|
@@ -702,7 +702,7 @@ namespace GxPress.Repository.Implement.Note
|
|
tede_user b ON a.UserId = b.Id inner join tede_middle c on c.MiddleId=a.Id
|
|
tede_user b ON a.UserId = b.Id inner join tede_middle c on c.MiddleId=a.Id
|
|
WHERE
|
|
WHERE
|
|
a.IsDelete = 0 AND a.UserId = {request.UserId} and c.FolderType={noteConstValue} {sqlValue}
|
|
a.IsDelete = 0 AND a.UserId = {request.UserId} and c.FolderType={noteConstValue} {sqlValue}
|
|
- ORDER BY a.IsTop desc ,a.CreatedDate DESC
|
|
|
|
|
|
+ ORDER BY a.IsTop desc ,a.LastModifiedDate DESC
|
|
limit {(request.Page - 1) * request.PerPage},{request.PerPage}";
|
|
limit {(request.Page - 1) * request.PerPage},{request.PerPage}";
|
|
var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypestr, DatabaseType.MySql);
|
|
var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypestr, DatabaseType.MySql);
|
|
var database = new Database(databaseType, _connectionString);
|
|
var database = new Database(databaseType, _connectionString);
|