修改BUG:程序异常查询条件结束时间不正确 closed #ITO42
#Issue https://gitee.com/LongbowEnterprise/BootstrapAdmin/issues/ITO42
This commit is contained in:
parent
a5c029e2aa
commit
7fe2763f8e
|
@ -111,7 +111,7 @@ namespace Bootstrap.DataAccess
|
||||||
{
|
{
|
||||||
var sql = new Sql("select * from Exceptions");
|
var sql = new Sql("select * from Exceptions");
|
||||||
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.AddDays(1).AddSeconds(-1));
|
||||||
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 {po.Sort} {po.Order}");
|
sql.Append($"order by {po.Sort} {po.Order}");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue