|
|
@@ -37,12 +37,12 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
37
|
37
|
}
|
|
38
|
38
|
|
|
39
|
39
|
//获取数据
|
|
40
|
|
- public ActionResult GetDataList(string stime, string endtime, string dpt, string dayss, string usercode = "")
|
|
|
40
|
+ public ActionResult GetDataList(string stime, string endtime, string dpt, string dayss, string usercode = "", string extensionnumber = "")
|
|
41
|
41
|
{
|
|
42
|
42
|
ActionResult res = NoToken("未知错误,请重新登录");
|
|
43
|
43
|
|
|
44
|
44
|
DataTable dtNew = new DataTable();
|
|
45
|
|
- dtNew = getData(stime, endtime, dpt, dayss, usercode);
|
|
|
45
|
+ dtNew = getData(stime, endtime, dpt, dayss, usercode, extensionnumber);
|
|
46
|
46
|
#region
|
|
47
|
47
|
//#region
|
|
48
|
48
|
//DataColumn dc1 = new DataColumn("部门");
|
|
|
@@ -413,7 +413,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
413
|
413
|
return res;
|
|
414
|
414
|
}
|
|
415
|
415
|
|
|
416
|
|
- private DataTable getData(string stime, string endtime, string dpt, string dayss, string _usercode = "")
|
|
|
416
|
+ private DataTable getData(string stime, string endtime, string dpt, string dayss, string _usercode = "", string extensionnumber = "")
|
|
417
|
417
|
{
|
|
418
|
418
|
DataTable dtNew = new DataTable();
|
|
419
|
419
|
#region
|
|
|
@@ -573,6 +573,10 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
573
|
573
|
{
|
|
574
|
574
|
usercodeSQL += $" and F_UserCode='{_usercode}' ";
|
|
575
|
575
|
}
|
|
|
576
|
+ if (!string.IsNullOrWhiteSpace(extensionnumber))
|
|
|
577
|
+ {
|
|
|
578
|
+ usercodeSQL += $" and F_ExtensionNumber like '%{extensionnumber}%'";
|
|
|
579
|
+ }
|
|
576
|
580
|
DataTable dtdpt = null;
|
|
577
|
581
|
if (!string.IsNullOrWhiteSpace(dpt) && Convert.ToInt32(dpt) >= 0)
|
|
578
|
582
|
{
|