修改BUG:程序异常页面排序不工作 #IS0M2 #IS0LI

This commit is contained in:
Argo-Surface 2019-02-27 18:53:08 +08:00
parent d6b63281fe
commit a9d3c78ff2
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ namespace Bootstrap.DataAccess
if (startTime.HasValue) sql.Append("where LogTime > @0", startTime.Value); if (startTime.HasValue) sql.Append("where LogTime > @0", startTime.Value);
if (endTime.HasValue) sql.Append("where LogTime < @0", endTime.Value); if (endTime.HasValue) sql.Append("where LogTime < @0", endTime.Value);
if (startTime == null && endTime == null) sql.Append("where LogTime > @0", DateTime.Today.AddDays(-7)); if (startTime == null && endTime == null) sql.Append("where LogTime > @0", DateTime.Today.AddDays(-7));
sql.Append("order by @0", $"{po.Sort} {po.Order}"); sql.Append($"order by {po.Sort} {po.Order}");
return DbManager.Create().Page<Exceptions>(po.PageIndex, po.Limit, sql); return DbManager.Create().Page<Exceptions>(po.PageIndex, po.Limit, sql);
} }