From 069ab54b21107d03dd762ee5d9a51e4aa684c85c Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 1 May 2019 18:05:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(#IW46T):=20=E8=AE=BF=E9=97=AE=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=A7=BB=E9=99=A4UserAgent=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit comment #IW46T close https://gitee.com/LongbowEnterprise/dashboard/issues?id=IW46T --- Bootstrap.DataAccess/Trace.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Bootstrap.DataAccess/Trace.cs b/Bootstrap.DataAccess/Trace.cs index b9284d84..7e3d4c4f 100644 --- a/Bootstrap.DataAccess/Trace.cs +++ b/Bootstrap.DataAccess/Trace.cs @@ -69,11 +69,13 @@ namespace Bootstrap.DataAccess /// /// /// - /// + /// + /// + /// /// public virtual Page Retrieves(PaginationOption po, DateTime? startTime, DateTime? endTime) { - var sql = new Sql("select * from Traces"); + var sql = new Sql("select UserName, LogTime, IP, Browser, OS, City, RequestUrl from Traces"); if (startTime.HasValue) sql.Append("where LogTime > @0", startTime.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.AddMonths(0 - DictHelper.RetrieveAccessLogPeriod()));