|
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 + "'";
|