zhengbingbing лет назад: 7
Родитель
Сommit
f2584389a5

+ 6 - 14
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/CallManageController.cs

@@ -24,7 +24,6 @@ namespace CallCenterApi.Interface.Controllers.report
24 24
         /// </returns>
25 25
         public ActionResult GetCallCount()
26 26
         {
27
-            ActionResult res = NoToken("未知错误,请重新登录");
28 27
             string daystr = DateTime.Now.ToShortDateString();
29 28
             //callState=1表示接通量,为空表示来电量
30 29
             int[] hours = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 };
@@ -50,8 +49,7 @@ namespace CallCenterApi.Interface.Controllers.report
50 49
                 callin = callincounts,
51 50
                 callconn = callConnCounts,
52 51
             };
53
-            res = Success("获取成功", obj);
54
-            return res;
52
+            return Success("GetCallCount获取成功", obj);
55 53
         }
56 54
         /// <summary>
57 55
         /// 话务量总体统计
@@ -79,7 +77,7 @@ namespace CallCenterApi.Interface.Controllers.report
79 77
                 daycallconnect = DayCallConnect,
80 78
                 daycallwconnect = DayCallWConnect,
81 79
             };
82
-            return Success("获取成功", obj);
80
+            return Success("GetCallTotal获取成功", obj);
83 81
             #region 20180725 zhengbingbing 整体调整
84 82
             //ActionResult res = NoToken("未知错误,请重新登录");
85 83
             //DateTime beginday = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
@@ -119,7 +117,6 @@ namespace CallCenterApi.Interface.Controllers.report
119 117
         /// <returns></returns>
120 118
         public ActionResult FreeBusyRate()
121 119
         {
122
-            ActionResult res = NoToken("未知错误,请重新登录");
123 120
             int[] hours = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 };
124 121
             //1: 登陆中、2:空闲、3:通话中、4:话后处理、5:小休、6:被请求
125 122
             string[] states = new string[] { "空闲", "通话中", "小休" };
@@ -179,8 +176,7 @@ namespace CallCenterApi.Interface.Controllers.report
179 176
                 callinrates = callingrate,
180 177
                 restrates = restrate
181 178
             };
182
-            res = Success("获取成功", obj);
183
-            return res;
179
+            return Success("FreeBusyRate获取成功", obj);
184 180
         }
185 181
         /// <summary>
186 182
         /// 平均通话时长统计
@@ -210,7 +206,7 @@ namespace CallCenterApi.Interface.Controllers.report
210 206
             {
211 207
                 avgtime = callavgtime
212 208
             };
213
-            return Success("获取成功", obj);
209
+            return Success("GetCallTime获取成功", obj);
214 210
             #region zhengbingbing 20180806
215 211
             //ActionResult res = NoToken("未知错误,请重新登录");
216 212
             //int[] hours = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 };
@@ -247,7 +243,6 @@ namespace CallCenterApi.Interface.Controllers.report
247 243
         /// </returns>
248 244
         public ActionResult GetCallState()
249 245
         {
250
-            ActionResult res = NoToken("未知错误,请重新登录");
251 246
             string daystr = DateTime.Now.ToShortDateString();
252 247
             string[] callstate = { "接通量", "未接量" };
253 248
             int[] hours = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 };
@@ -271,8 +266,7 @@ namespace CallCenterApi.Interface.Controllers.report
271 266
                 callconn = callConncounts,
272 267
                 callunconn = callUnConnCounts
273 268
             };
274
-            res = Success("获取成功", obj);
275
-            return res;
269
+            return Success("GetCallState获取成功", obj);
276 270
         }
277 271
         /// <summary>
278 272
         /// 获取坐席人数
@@ -280,7 +274,6 @@ namespace CallCenterApi.Interface.Controllers.report
280 274
         /// <returns></returns>
281 275
         public ActionResult GetSeatCount()
282 276
         {
283
-            ActionResult res = NoToken("未知错误,请重新登录");
284 277
             int SeatCount = 0;
285 278
             if (string.IsNullOrEmpty("SeatCount"))
286 279
             {
@@ -296,8 +289,7 @@ namespace CallCenterApi.Interface.Controllers.report
296 289
             {
297 290
                 seatcount = SeatCount
298 291
             };
299
-            res = Success("获取成功", obj);
300
-            return res;
292
+            return Success("GetSeatCount获取成功", obj);
301 293
         }
302 294
 
303 295
         //保存 坐席人数