Quellcode durchsuchen

数据有误差 包括一个到ivr但是没到坐席的记录

MicroWin10-1604\Administrator vor 7 Jahren
Ursprung
Commit
06f7e90aa1

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

396
                 #endregion
396
                 #endregion
397
 
397
 
398
                 #region 服务水平
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 calltype=0 and BeginTime BETWEEN '" + starttime + "' AND '" + endtime + "'";
399
+                string sql1 = "select  isnull(SUM(case when isnull(RingLongTime,0)<=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
                 DataRow dr1 = dtnew.NewRow();
400
                 DataRow dr1 = dtnew.NewRow();
401
                 DataSet ds1 = DbHelperSQL.Query(sql1);
401
                 DataSet ds1 = DbHelperSQL.Query(sql1);
402
                 if (ds1 != null && ds1.Tables.Count > 0)
402
                 if (ds1 != null && ds1.Tables.Count > 0)