|
|
@@ -34,7 +34,7 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
|
|
34
|
34
|
|
|
35
|
35
|
//操作记录 敏感信息 主要设置
|
|
36
|
36
|
[ActionName("GetListData")]
|
|
37
|
|
- public string GetListData(string Table = "", string id = "", int page = 1, int limit = 20,string actionname= "")
|
|
|
37
|
+ public string GetListData( string dateParty, string username,string Table = "", string id = "", int page = 1, int limit = 20,string actionname= "")
|
|
38
|
38
|
{
|
|
39
|
39
|
string strWhere = "";
|
|
40
|
40
|
if (Table == "kf_quick_msgs")
|
|
|
@@ -57,6 +57,18 @@ namespace YTSoft.BaseCallCenter.MVCWeb.Controllers
|
|
57
|
57
|
{
|
|
58
|
58
|
strWhere += string.Format(" and TableId ='{0}'", id);
|
|
59
|
59
|
}
|
|
|
60
|
+ if (!string.IsNullOrEmpty(username)) {
|
|
|
61
|
+ strWhere += string.Format(" and AddUser ='{0}'", username);
|
|
|
62
|
+ }
|
|
|
63
|
+
|
|
|
64
|
+ if (!string.IsNullOrEmpty(dateParty))
|
|
|
65
|
+ {
|
|
|
66
|
+ string startDate = dateParty.Substring(0, 10);
|
|
|
67
|
+ string endDate = dateParty.Substring(12);
|
|
|
68
|
+ strWhere += " and Atime>= '" + startDate + " 00:00:00" + "'";
|
|
|
69
|
+ strWhere += " and Atime<= '" + endDate + " 23:59:59" + "'";
|
|
|
70
|
+ }
|
|
|
71
|
+
|
|
60
|
72
|
|
|
61
|
73
|
DataTable dt = busLogAction.GetListByPage(strWhere, " atime desc ", (page - 1) * limit, page*limit).Tables[0];
|
|
62
|
74
|
int count = busLogAction.GetRecordCount(strWhere);
|