Sfoglia il codice sorgente

修改绿地的bug,同步到安图中

lihai 7 anni fa
parent
commit
6a0895e542

+ 2 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/DaysTalkTimeController.cs

@@ -163,7 +163,8 @@ namespace CallCenterApi.Interface.Controllers.report
163 163
 
164 164
             DateTime beginTime;
165 165
             DateTime endTime;
166
-            string sql = "";
166
+            //添加这个条件是通话时长比实际时长大,与“通话时长统计”的“通话总时长”统计不一样。
167
+            string sql = " AND ISNULL(UserCode,'0') != '0' ";
167 168
 
168 169
             int days = DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month);
169 170
             if (stime != null && stime != "")

+ 3 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/SwitchedlossCallController.cs

@@ -290,8 +290,9 @@ namespace CallCenterApi.Interface.Controllers.report
290 290
 
291 291
             sql += " and DATEDIFF(d,BeginTime,'" + beginTime.ToString("yyyy-MM-dd HH:mm:ss") + "')<=0";
292 292
             sql += " and DATEDIFF(d,BeginTime,'" + endTime.ToString("yyyy-MM-dd HH:mm:ss") + "')>=0";
293
-
294
-            DataTable dt = new BLL.T_Call_CallRecords().GetList("1=1 and BusinessType=0 and calltype=0" + sql).Tables[0]; //BusinessType=0代表ivr中选择了转人工,calltype=1代表呼入
293
+            // 没有业务类型。添加这个条件会过滤掉 BusinessType is null 的记录
294
+            //DataTable dt = new BLL.T_Call_CallRecords().GetList("1=1 and BusinessType=0 and calltype=0" + sql).Tables[0];
295
+            DataTable dt = new BLL.T_Call_CallRecords().GetList("1=1 and calltype=0" + sql).Tables[0]; //BusinessType=0代表ivr中选择了转人工,calltype=1代表呼入
295 296
 
296 297
 
297 298