|
@@ -70,7 +70,7 @@ namespace GxPress.Repository.Implement.WorkMeeting
|
|
|
var sql = $@"select * from tede_meeting where Id in( select MeetingSummaryId from tede_meeting_summary_todo where TypeId=1 and UserId={userId}) and EndDateTime<'{DateTime.Now}'";
|
|
|
if (!string.IsNullOrWhiteSpace(keyword))
|
|
|
sql += $" and (Name like '%{keyword}%' or Description like '%{keyword}%')";
|
|
|
- sql += $" limit {(page - 1) * perPage},{perPage}";
|
|
|
+ sql += $" order by StartDateTime desc limit {(page - 1) * perPage},{perPage}";
|
|
|
var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
|
|
|
var database = new Database(databaseType, _connectionString);
|
|
|
var connection = database.GetConnection();
|