|
|
@@ -474,27 +474,47 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
474
|
474
|
}
|
|
475
|
475
|
return Success("成功", obj);
|
|
476
|
476
|
}
|
|
477
|
|
- ///// <summary>
|
|
478
|
|
- ///// 获取营商分析报表 工单满意度统计
|
|
479
|
|
- ///// </summary>
|
|
480
|
|
- ///// <param name="date"></param>
|
|
481
|
|
- ///// <param name="isdc"></param>
|
|
482
|
|
- ///// <returns></returns>
|
|
483
|
|
- //public ActionResult GetKeyReport(string date, int isdc = 0)
|
|
484
|
|
- //{
|
|
485
|
|
- // DateTime dttime = DateTime.Now;
|
|
486
|
|
- // if (!string.IsNullOrEmpty(date))
|
|
487
|
|
- // {
|
|
488
|
|
- // if (!DateTime.TryParse(date, out dttime))
|
|
489
|
|
- // {
|
|
490
|
|
- // dttime = DateTime.Now;
|
|
491
|
|
- // }
|
|
492
|
|
- // }
|
|
493
|
|
- // Dictionary<string, string> paras = new Dictionary<string, string>();
|
|
494
|
|
- // paras.Add("@date", dttime.ToString("yyyy-MM-dd"));
|
|
495
|
|
- // var obj = DbHelperSQL.RunProcedure("P_KeyReport", paras, "KeyReport");
|
|
496
|
|
- // return Success("成功", obj);
|
|
497
|
|
- //}
|
|
498
|
|
-
|
|
|
477
|
+ /// <summary>
|
|
|
478
|
+ /// 获取营商分析报表 工单满意度统计
|
|
|
479
|
+ /// </summary>
|
|
|
480
|
+ /// <param name="date"></param>
|
|
|
481
|
+ /// <param name="isdc"></param>
|
|
|
482
|
+ /// <returns></returns>
|
|
|
483
|
+ public ActionResult GetYSSatisfaction(string date, int isdc = 0)
|
|
|
484
|
+ {
|
|
|
485
|
+ DateTime dttime = DateTime.Now;
|
|
|
486
|
+ if (!string.IsNullOrEmpty(date))
|
|
|
487
|
+ {
|
|
|
488
|
+ if (!DateTime.TryParse(date, out dttime))
|
|
|
489
|
+ {
|
|
|
490
|
+ dttime = DateTime.Now;
|
|
|
491
|
+ }
|
|
|
492
|
+ }
|
|
|
493
|
+ Dictionary<string, string> paras = new Dictionary<string, string>();
|
|
|
494
|
+ paras.Add("@date", dttime.ToString("yyyy-MM-dd"));
|
|
|
495
|
+ var obj = DbHelperSQL.RunProcedure("P_YSSatisfaction", paras, "YSSatisfaction");
|
|
|
496
|
+ return Success("成功", obj);
|
|
|
497
|
+ }
|
|
|
498
|
+ /// <summary>
|
|
|
499
|
+ /// 获取营商分析报表 转办工单办理时长统计
|
|
|
500
|
+ /// </summary>
|
|
|
501
|
+ /// <param name="date"></param>
|
|
|
502
|
+ /// <param name="isdc"></param>
|
|
|
503
|
+ /// <returns></returns>
|
|
|
504
|
+ public ActionResult GetYSDuration(string date, int isdc = 0)
|
|
|
505
|
+ {
|
|
|
506
|
+ DateTime dttime = DateTime.Now;
|
|
|
507
|
+ if (!string.IsNullOrEmpty(date))
|
|
|
508
|
+ {
|
|
|
509
|
+ if (!DateTime.TryParse(date, out dttime))
|
|
|
510
|
+ {
|
|
|
511
|
+ dttime = DateTime.Now;
|
|
|
512
|
+ }
|
|
|
513
|
+ }
|
|
|
514
|
+ Dictionary<string, string> paras = new Dictionary<string, string>();
|
|
|
515
|
+ paras.Add("@date", dttime.ToString("yyyy")+"-01-01");
|
|
|
516
|
+ var obj = DbHelperSQL.RunProcedure("P_YSDuration", paras, "YSDuration");
|
|
|
517
|
+ return Success("成功", obj);
|
|
|
518
|
+ }
|
|
499
|
519
|
}
|
|
500
|
520
|
}
|