|
|
@@ -177,9 +177,9 @@ namespace CallCenterApi.Interface.Controllers
|
|
177
|
177
|
private object GetHWLSS()
|
|
178
|
178
|
{
|
|
179
|
179
|
//接通量
|
|
180
|
|
- DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor, count(1) con from T_Call_CallRecords WHTH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
|
|
|
180
|
+ DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor, count(1) con from T_Call_CallRecords WITH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
|
|
181
|
181
|
//来电量
|
|
182
|
|
- DataTable dt1 = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor, count(1) con from T_Call_CallRecords WHTH(NOLOCK) where CallType=0 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
|
|
|
182
|
+ DataTable dt1 = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor, count(1) con from T_Call_CallRecords WITH(NOLOCK) where CallType=0 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
|
|
183
|
183
|
|
|
184
|
184
|
int[] times = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
|
|
185
|
185
|
var query3 = times.Select(x => {
|
|
|
@@ -252,7 +252,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
252
|
252
|
private object GetHWZL()
|
|
253
|
253
|
{
|
|
254
|
254
|
//话务量
|
|
255
|
|
- DataTable dt = DbHelperSQL.Query(" select count(1) con from T_Call_CallRecords WHTH(NOLOCK) where datediff(day, BeginTime, getdate()) = 0 ").Tables[0];
|
|
|
255
|
+ DataTable dt = DbHelperSQL.Query(" select count(1) con from T_Call_CallRecords WITH(NOLOCK) where datediff(day, BeginTime, getdate()) = 0 ").Tables[0];
|
|
256
|
256
|
|
|
257
|
257
|
var hwcon = dt.Rows[0]["con"].ToString();//话务量
|
|
258
|
258
|
if (string.IsNullOrEmpty(hwcon))
|
|
|
@@ -260,7 +260,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
260
|
260
|
hwcon = "0";
|
|
261
|
261
|
}
|
|
262
|
262
|
//来话量
|
|
263
|
|
- DataTable dt1 = DbHelperSQL.Query(" select count(1) con from T_Call_CallRecords WHTH(NOLOCK) where CallType=0 and datediff(day, BeginTime, getdate()) = 0 ").Tables[0];
|
|
|
263
|
+ DataTable dt1 = DbHelperSQL.Query(" select count(1) con from T_Call_CallRecords WITH(NOLOCK) where CallType=0 and datediff(day, BeginTime, getdate()) = 0 ").Tables[0];
|
|
264
|
264
|
var lhcon = dt1.Rows[0]["con"].ToString();//话务量
|
|
265
|
265
|
if (string.IsNullOrEmpty(lhcon))
|
|
266
|
266
|
{
|
|
|
@@ -268,7 +268,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
268
|
268
|
}
|
|
269
|
269
|
|
|
270
|
270
|
//接通量,通话时长
|
|
271
|
|
- DataTable dt2 = DbHelperSQL.Query(" select count(1) con,sum(TalkLongTime) tltimes from T_Call_CallRecords WHTH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 ").Tables[0];
|
|
|
271
|
+ DataTable dt2 = DbHelperSQL.Query(" select count(1) con,sum(TalkLongTime) tltimes from T_Call_CallRecords WITH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 ").Tables[0];
|
|
272
|
272
|
var jtcon = dt2.Rows[0]["con"].ToString();//接通量
|
|
273
|
273
|
var thtimes = dt2.Rows[0]["tltimes"].ToString();//通话时长
|
|
274
|
274
|
if (string.IsNullOrEmpty(jtcon))
|
|
|
@@ -309,7 +309,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
309
|
309
|
private object GetHWL()
|
|
310
|
310
|
{
|
|
311
|
311
|
//话务量
|
|
312
|
|
- DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con from T_Call_CallRecords WHTH(NOLOCK) where datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
|
|
|
312
|
+ DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con from T_Call_CallRecords WITH(NOLOCK) where datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
|
|
313
|
313
|
|
|
314
|
314
|
int[] times = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
|
|
315
|
315
|
var query3 = times.Select(x =>
|
|
|
@@ -332,10 +332,10 @@ namespace CallCenterApi.Interface.Controllers
|
|
332
|
332
|
private object GetJTL()
|
|
333
|
333
|
{
|
|
334
|
334
|
//话务量
|
|
335
|
|
- DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con from T_Call_CallRecords WHTH(NOLOCK) where datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
|
|
|
335
|
+ DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con from T_Call_CallRecords WITH(NOLOCK) where datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
|
|
336
|
336
|
|
|
337
|
337
|
//接通量,通话时长
|
|
338
|
|
- DataTable dt2 = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con from T_Call_CallRecords WHTH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
|
|
|
338
|
+ DataTable dt2 = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con from T_Call_CallRecords WITH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
|
|
339
|
339
|
|
|
340
|
340
|
int[] times = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
|
|
341
|
341
|
var query3 = times.Select(x =>
|
|
|
@@ -361,7 +361,7 @@ namespace CallCenterApi.Interface.Controllers
|
|
361
|
361
|
private object GetPjthsc()
|
|
362
|
362
|
{
|
|
363
|
363
|
//接通量,通话时长
|
|
364
|
|
- DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con,sum(TalkLongTime) tltimes from T_Call_CallRecords WHTH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
|
|
|
364
|
+ DataTable dt = DbHelperSQL.Query(" select datepart(hh,BeginTime) hor,count(1) con,sum(TalkLongTime) tltimes from T_Call_CallRecords WITH(NOLOCK) where CallState=1 and datediff(day, BeginTime, getdate()) = 0 group by datepart(hh,BeginTime) ").Tables[0];
|
|
365
|
365
|
|
|
366
|
366
|
int[] times = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
|
|
367
|
367
|
var query3 = times.Select(x => {
|