ソースを参照

增加未接通状态

zhengbingbing 7 年 前
コミット
3d80dd6063

+ 9 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/TtrafficController.cs

@@ -43,8 +43,9 @@ namespace CallCenterApi.Interface.Controllers.report
43 43
             DataColumn dc4 = new DataColumn("主动挂断次数");
44 44
             DataColumn dc5 = new DataColumn("特殊挂断次数");
45 45
             DataColumn dc6 = new DataColumn("自助服务次数");
46
-            DataColumn dc7 = new DataColumn("呼出次数");
47
-            DataColumn dc8 = new DataColumn("呼出接通次数");
46
+            DataColumn dc7 = new DataColumn("排队等待次数");
47
+            DataColumn dc8 = new DataColumn("呼出次数");
48
+            DataColumn dc9 = new DataColumn("呼出接通次数");
48 49
 
49 50
             dtNew.Columns.Add(dc1);
50 51
             dtNew.Columns.Add(dc2);
@@ -54,6 +55,7 @@ namespace CallCenterApi.Interface.Controllers.report
54 55
             dtNew.Columns.Add(dc6);
55 56
             dtNew.Columns.Add(dc7);
56 57
             dtNew.Columns.Add(dc8);
58
+            dtNew.Columns.Add(dc9);
57 59
             #endregion
58 60
 
59 61
             int injttotalcount = 0;//呼入接听次数
@@ -61,6 +63,7 @@ namespace CallCenterApi.Interface.Controllers.report
61 63
             int srgdtotalcount = 0;//主动挂断次数
62 64
             int blacktotalcount = 0;//特殊挂断次数
63 65
             int zjfwtotalcount = 0;//自助服务次数
66
+            int waittotalcount = 0;//排队等待次数
64 67
             int outtotalcount = 0;//呼出次数
65 68
             int outjttotalcount = 0;//呼出未接通次数
66 69
             #region 时间搜索
@@ -94,6 +97,8 @@ namespace CallCenterApi.Interface.Controllers.report
94 97
                 blacktotalcount += blackcount;
95 98
                 int zjfwcount = dtlist.Select(" calltype=0 and callstate=0 and dealtype=2 and begintime >='" + s.ToString("yyyy-MM-dd") + "' and beginTime<'" + s.AddDays(1).ToString("yyyy-MM-dd") + "' ").Count();//自助服务次数
96 99
                 zjfwtotalcount += zjfwcount;
100
+                int waitcount = dtlist.Select(" calltype=0 and callstate=0 and dealtype=3 and begintime >='" + s.ToString("yyyy-MM-dd") + "' and beginTime<'" + s.AddDays(1).ToString("yyyy-MM-dd") + "' ").Count();//排队等待次数
101
+                waittotalcount += waitcount;
97 102
                 int outcount = dtlist.Select(" calltype=1 and begintime >='" + s.ToString("yyyy-MM-dd") + "' and beginTime<'" + s.AddDays(1).ToString("yyyy-MM-dd") + "' ").Count();//呼出次数
98 103
                 outtotalcount += outcount;
99 104
                 int outjtcount = dtlist.Select(" calltype=1 and callstate=0 and begintime >='" + s.ToString("yyyy-MM-dd") + "' and beginTime<'" + s.AddDays(1).ToString("yyyy-MM-dd") + "' ").Count();//呼出未接通次数
@@ -106,6 +111,7 @@ namespace CallCenterApi.Interface.Controllers.report
106 111
                 drNew["主动挂断次数"] = srgdcount;
107 112
                 drNew["特殊挂断次数"] = blackcount;
108 113
                 drNew["自助服务次数"] = zjfwcount;
114
+                drNew["排队等待次数"] = waitcount;
109 115
                 drNew["呼出次数"] = outcount;
110 116
                 drNew["呼出接通次数"] = outjtcount;
111 117
                 dtNew.Rows.Add(drNew);
@@ -120,6 +126,7 @@ namespace CallCenterApi.Interface.Controllers.report
120 126
             drtotal["主动挂断次数"] = srgdtotalcount;
121 127
             drtotal["特殊挂断次数"] = blacktotalcount;
122 128
             drtotal["自助服务次数"] = zjfwtotalcount;
129
+            drtotal["排队等待次数"] = waittotalcount;
123 130
             drtotal["呼出次数"] = outtotalcount;
124 131
             drtotal["呼出接通次数"] = outjttotalcount;
125 132
 

+ 6 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallrecordsController.cs

@@ -72,6 +72,9 @@ namespace CallCenterApi.Interface.Controllers.tel
72 72
                     case "3"://自助服务
73 73
                         sql += " and CallType='0' and CallState='0' and DealType='2' ";
74 74
                         break;
75
+                    case "5"://排队等待
76
+                        sql += " and CallType='0' and CallState='0' and DealType='3' ";
77
+                        break;
75 78
                     case "4"://已接通
76 79
                         sql += " and CallState='1' ";
77 80
                         break;
@@ -238,6 +241,9 @@ namespace CallCenterApi.Interface.Controllers.tel
238 241
                         case "3"://自助服务
239 242
                             sql += " and CallType='0' and CallState='0' and DealType='2' ";
240 243
                             break;
244
+                        case "5"://排队等待
245
+                            sql += " and CallType='0' and CallState='0' and DealType='3' ";
246
+                            break;
241 247
                         case "4"://已接通
242 248
                             sql += " and CallState='1' ";
243 249
                             break;