浏览代码

话务kpi服务水平数据错误

MicroWin10-1604\Administrator 7 年之前
父节点
当前提交
8110b59fc2

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallrecordsController.cs

@@ -396,7 +396,7 @@ namespace CallCenterApi.Interface.Controllers.tel
396 396
                 #endregion
397 397
 
398 398
                 #region 服务水平
399
-                string sql1 = "select  isnull(SUM(case when RingLongTime<=20 and Callstate='1' then 1 else 0 end),0) as InTime,isnull(SUM(case when RingLongTime>20 and Callstate='1' then 1 else 0 end),0) as Delay,isnull(SUM(case when Callstate='1' then 1 else 0 end),0) as total from T_Call_CallRecords where BeginTime BETWEEN '" + starttime + "' AND '" + endtime + "'";
399
+                string sql1 = "select  isnull(SUM(case when RingLongTime<=20 and Callstate='1' then 1 else 0 end),0) as InTime,isnull(SUM(case when RingLongTime>20 and Callstate='1' then 1 else 0 end),0) as Delay,isnull(SUM(case when Callstate='1' then 1 else 0 end),0) as total from T_Call_CallRecords where calltype=0 and BeginTime BETWEEN '" + starttime + "' AND '" + endtime + "'";
400 400
                 DataRow dr1 = dtnew.NewRow();
401 401
                 DataSet ds1 = DbHelperSQL.Query(sql1);
402 402
                 if (ds1 != null && ds1.Tables.Count > 0)