ソースを参照

调整报表返回值

zhengbingbing 7 年 前
コミット
f2584389a5
共有1 個のファイルを変更した6 個の追加14 個の削除を含む
  1. 6 14
      codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/CallManageController.cs

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

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