Quellcode durchsuchen

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

lihai vor 7 Jahren
Ursprung
Commit
6a0895e542

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

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

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

290
 
290
 
291
             sql += " and DATEDIFF(d,BeginTime,'" + beginTime.ToString("yyyy-MM-dd HH:mm:ss") + "')<=0";
291
             sql += " and DATEDIFF(d,BeginTime,'" + beginTime.ToString("yyyy-MM-dd HH:mm:ss") + "')<=0";
292
             sql += " and DATEDIFF(d,BeginTime,'" + endTime.ToString("yyyy-MM-dd HH:mm:ss") + "')>=0";
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