diff --git a/Bootstrap.DataAccess/Log.cs b/Bootstrap.DataAccess/Log.cs
index 7f574c18..5021d656 100644
--- a/Bootstrap.DataAccess/Log.cs
+++ b/Bootstrap.DataAccess/Log.cs
@@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace Bootstrap.DataAccess
{
///
- ///
+ /// 操作日志实体类
///
[TableName("Logs")]
public class Log : Trace
@@ -31,7 +31,7 @@ namespace Bootstrap.DataAccess
///
public virtual new Page RetrievePages(PaginationOption po, DateTime? startTime, DateTime? endTime, string opType)
{
- var sql = new Sql("select CRUD, UserName, LogTime, Ip, Browser, OS, City, RequestUrl, RequestData from Logs");
+ var sql = new Sql("select * from Logs");
if (startTime.HasValue) sql.Where("LogTime >= @0", startTime.Value);
if (endTime.HasValue) sql.Where("LogTime < @0", endTime.Value.AddDays(1).AddSeconds(-1));
if (startTime == null && endTime == null) sql.Where("LogTime > @0", DateTime.Today.AddMonths(0 - DictHelper.RetrieveExceptionsLogPeriod()));
@@ -42,7 +42,7 @@ namespace Bootstrap.DataAccess
}
///
- ///
+ /// 查询所有操作日志
///
///
///
diff --git a/Bootstrap.DataAccess/LoginUser.cs b/Bootstrap.DataAccess/LoginUser.cs
index f049643f..e5c78e30 100644
--- a/Bootstrap.DataAccess/LoginUser.cs
+++ b/Bootstrap.DataAccess/LoginUser.cs
@@ -6,58 +6,58 @@ using System.Collections.Generic;
namespace Bootstrap.DataAccess
{
///
- ///
+ /// 登录用户信息实体类
///
[TableName("LoginLogs")]
public class LoginUser
{
///
- ///
+ /// 获得/设置 Id
///
public string Id { get; set; }
///
- ///
+ /// 获得/设置 用户名
///
public string UserName { get; set; }
///
- ///
+ /// 获得/设置 登录时间
///
public DateTime LoginTime { get; set; }
///
- ///
+ /// 获得/设置 登录IP地址
///
public string Ip { get; set; }
///
- ///
+ /// 获得/设置 登录浏览器
///
public string Browser { get; set; }
///
- ///
+ /// 获得/设置 登录操作系统
///
public string OS { get; set; }
///
- ///
+ /// 获得/设置 登录地点
///
public string City { get; set; }
///
- ///
+ /// 获得/设置 登录是否成功
///
public string Result { get; set; }
///
- ///
+ /// 获得/设置 用户 UserAgent
///
public string UserAgent { get; set; }
///
- ///
+ /// 保存登录用户数据
///
///
///
@@ -69,7 +69,7 @@ namespace Bootstrap.DataAccess
}
///
- ///
+ /// 获得登录用户的分页数据
///
///
///
@@ -78,7 +78,7 @@ namespace Bootstrap.DataAccess
///
public virtual Page RetrieveByPages(PaginationOption po, DateTime? startTime, DateTime? endTime, string ip)
{
- var sql = new Sql("select UserName, LoginTime, Ip, Browser, OS, City, Result from LoginLogs");
+ var sql = new Sql("select * from LoginLogs");
if (startTime.HasValue) sql.Where("LoginTime >= @0", startTime.Value);
if (endTime.HasValue) sql.Where("LoginTime < @0", endTime.Value.AddDays(1));
if (!string.IsNullOrEmpty(ip)) sql.Where("ip = @0", ip);
diff --git a/Bootstrap.DataAccess/Trace.cs b/Bootstrap.DataAccess/Trace.cs
index b7beb780..949b17fa 100644
--- a/Bootstrap.DataAccess/Trace.cs
+++ b/Bootstrap.DataAccess/Trace.cs
@@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace Bootstrap.DataAccess
{
///
- ///
+ /// 用户访问数据实体类
///
[TableName("Traces")]
public class Trace
@@ -32,17 +32,17 @@ namespace Bootstrap.DataAccess
public string Ip { get; set; }
///
- ///
+ /// 获得/设置 客户端地点
///
public string City { get; set; }
///
- ///
+ /// 获得/设置 客户端浏览器
///
public string Browser { get; set; }
///
- ///
+ /// 获得/设置 客户端操作系统
///
public string OS { get; set; }
@@ -52,12 +52,12 @@ namespace Bootstrap.DataAccess
public string RequestUrl { get; set; }
///
- ///
+ /// 获得/设置 客户端 UserAgent
///
public string UserAgent { get; set; }
///
- /// 保存访问历史记录
+ /// 保存用户访问数据历史记录
///
///
public virtual bool Save(Trace p)
@@ -69,7 +69,7 @@ namespace Bootstrap.DataAccess
}
///
- ///
+ /// 查询用户访问分页数据
///
///
///
@@ -78,7 +78,7 @@ namespace Bootstrap.DataAccess
///
public virtual Page RetrievePages(PaginationOption po, DateTime? startTime, DateTime? endTime, string ip)
{
- var sql = new Sql("select UserName, LogTime, IP, Browser, OS, City, RequestUrl from Traces");
+ var sql = new Sql("select * from Traces");
if (startTime.HasValue) sql.Where("LogTime > @0", startTime.Value);
if (endTime.HasValue) sql.Where("LogTime < @0", endTime.Value.AddDays(1).AddSeconds(-1));
if (startTime == null && endTime == null) sql.Where("LogTime > @0", DateTime.Today.AddMonths(0 - DictHelper.RetrieveAccessLogPeriod()));
@@ -89,7 +89,7 @@ namespace Bootstrap.DataAccess
}
///
- ///
+ /// 查询所有用户数据
///
///
///