|
|
@@ -451,6 +451,7 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
451
|
451
|
string mobile = RequestString.GetQueryString("mobile");
|
|
452
|
452
|
int dbdb = RequestString.GetInt("dbdb", 0);
|
|
453
|
453
|
int db = RequestString.GetInt("db", 0);
|
|
|
454
|
+ int ys = RequestString.GetInt("ys", 0);
|
|
454
|
455
|
string dbusercode = RequestString.GetQueryString("dbusercode");
|
|
455
|
456
|
string strpageindex = RequestString.GetQueryString("page");
|
|
456
|
457
|
string strpagesize = RequestString.GetQueryString("pagesize");
|
|
|
@@ -663,6 +664,108 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
663
|
664
|
|
|
664
|
665
|
|
|
665
|
666
|
}
|
|
|
667
|
+
|
|
|
668
|
+ if (ys>0)
|
|
|
669
|
+ {
|
|
|
670
|
+ sql += " and F_InfoSource =2501";
|
|
|
671
|
+ if (ys ==2)
|
|
|
672
|
+ {
|
|
|
673
|
+ //直办总量
|
|
|
674
|
+ sql += "and F_IsResult=1 ";
|
|
|
675
|
+ }
|
|
|
676
|
+ else if (ys == 3)
|
|
|
677
|
+ {
|
|
|
678
|
+ //直办办结量
|
|
|
679
|
+ sql += "and F_IsResult=1 and F_WorkState =9 ";
|
|
|
680
|
+ }
|
|
|
681
|
+ else if (ys == 4)
|
|
|
682
|
+ {
|
|
|
683
|
+ //转办总量
|
|
|
684
|
+ sql += "and F_IsResult=0 ";
|
|
|
685
|
+ }
|
|
|
686
|
+ else if (ys == 5)
|
|
|
687
|
+ {
|
|
|
688
|
+ //转办办结量
|
|
|
689
|
+ sql += "and F_IsResult=0 and F_WorkState =9 ";
|
|
|
690
|
+ }
|
|
|
691
|
+ else if (ys == 6)
|
|
|
692
|
+ {
|
|
|
693
|
+ //正常回复
|
|
|
694
|
+ sql += " and F_WorkState =9 ";
|
|
|
695
|
+ }
|
|
|
696
|
+ else if (ys == 7)
|
|
|
697
|
+ {
|
|
|
698
|
+ //已办未果
|
|
|
699
|
+ sql += " and FF_WorkState in (6,7)and F_IsProResult in(2,3) ";
|
|
|
700
|
+ }
|
|
|
701
|
+ else if (ys == 8)
|
|
|
702
|
+ {
|
|
|
703
|
+ //超期回复
|
|
|
704
|
+ sql += " and F_DealTime >F_LimitTime and F_WorkState in(6,7,9) " +
|
|
|
705
|
+ "and F_MainDeptId is not null and F_LimitTime is not null ";
|
|
|
706
|
+ }
|
|
|
707
|
+ else if (ys == 10)
|
|
|
708
|
+ {
|
|
|
709
|
+ //待审信件
|
|
|
710
|
+ sql += " and F_WorkState in(1,11) ";
|
|
|
711
|
+ }
|
|
|
712
|
+ else if (ys == 11)
|
|
|
713
|
+ {
|
|
|
714
|
+ //正在办理
|
|
|
715
|
+ sql += " and F_WorkState in(2,4,5,8) ";
|
|
|
716
|
+ }
|
|
|
717
|
+ else if (ys == 12)
|
|
|
718
|
+ {
|
|
|
719
|
+ //超期未果
|
|
|
720
|
+ sql += " and F_LimitTime <getdate() and F_WorkState NOT IN (6,7,9) " +
|
|
|
721
|
+ "and F_MainDeptId is not null and F_LimitTime is not null ";
|
|
|
722
|
+ }
|
|
|
723
|
+ else if (ys == 13)
|
|
|
724
|
+ {
|
|
|
725
|
+ //重置转发
|
|
|
726
|
+ sql += " and F_WorkState=8 and F_Identification=0 ";
|
|
|
727
|
+ }
|
|
|
728
|
+ else if (ys == 14)
|
|
|
729
|
+ {
|
|
|
730
|
+ //驳回记录
|
|
|
731
|
+ sql += " and F_WorkState=8 and F_Identification in(1,2) ";
|
|
|
732
|
+ }
|
|
|
733
|
+ else if (ys == 15)
|
|
|
734
|
+ {
|
|
|
735
|
+ //关联件数
|
|
|
736
|
+ sql += " and F_IsRelease in (2,3) ";
|
|
|
737
|
+ }
|
|
|
738
|
+ else if (ys == 16)
|
|
|
739
|
+ {
|
|
|
740
|
+ //评议量
|
|
|
741
|
+ sql += " and F_WorkOrderId in (select WorkOrderId from PublicComment) ";
|
|
|
742
|
+ }
|
|
|
743
|
+ else if (ys == 17)
|
|
|
744
|
+ {
|
|
|
745
|
+ //评议满意量
|
|
|
746
|
+ sql += " and F_WorkOrderId in (select WorkOrderId from PublicComment where strWrkOrder_Cst_Ssf_Cd not like '%不满意%') ";
|
|
|
747
|
+ }
|
|
|
748
|
+ else if (ys == 18)
|
|
|
749
|
+ {
|
|
|
750
|
+ //评议不满意量
|
|
|
751
|
+ sql += " and F_WorkOrderId in (select WorkOrderId from PublicComment where strWrkOrder_Cst_Ssf_Cd like '%不满意%') ";
|
|
|
752
|
+ }
|
|
|
753
|
+ else if (ys == 19)
|
|
|
754
|
+ {
|
|
|
755
|
+ //回访量
|
|
|
756
|
+ sql += " and F_WorkOrderId in (select F_WorkOrderId from T_Bus_VisitResult ) ";
|
|
|
757
|
+ }
|
|
|
758
|
+ else if (ys == 20)
|
|
|
759
|
+ {
|
|
|
760
|
+ //回访满意量
|
|
|
761
|
+ sql += " and F_WorkOrderId in (select F_WorkOrderId from T_Bus_VisitResult where F_IsSatisfie=1 ) ";
|
|
|
762
|
+ }
|
|
|
763
|
+ else if (ys == 21)
|
|
|
764
|
+ {
|
|
|
765
|
+ //回访不满意量
|
|
|
766
|
+ sql += " and F_WorkOrderId in (select F_WorkOrderId from T_Bus_VisitResult where F_IsSatisfie=0 ) ";
|
|
|
767
|
+ }
|
|
|
768
|
+ }
|
|
666
|
769
|
string cols = "";
|
|
667
|
770
|
string order = "ORDER BY a.F_CreateTime DESC";
|
|
668
|
771
|
if (name >0)
|
|
|
@@ -808,22 +911,22 @@ namespace CallCenterApi.Interface.Controllers.report
|
|
808
|
911
|
tss = "0" + t;
|
|
809
|
912
|
|
|
810
|
913
|
incomin.time = iss + ":00" + "-" + tss + ":00";
|
|
811
|
|
- incomin.IncomingCount = modelcalllist.Where(x => x.BeginTime.Value.Hour ==i &&x.PhoneType =="12345"
|
|
|
914
|
+ incomin.IncomingCount = modelcalllist.Where(x => x.BeginTime.Value.Hour ==i && x.PhoneType == "12345"
|
|
812
|
915
|
).Count();
|
|
813
|
916
|
ldcount += incomin.IncomingCount;
|
|
814
|
917
|
incomin.Oncapacity = modelcalllist.Where(x => x.BeginTime.Value.Hour ==i
|
|
815
|
918
|
&& x.CallState == 1 && x.PhoneType == "12345").Count();
|
|
816
|
919
|
jtcount += incomin.Oncapacity;
|
|
817
|
920
|
|
|
818
|
|
- incomin.newIncomingCount = modelcalllist.Where(x => x.BeginTime.Value.Hour == i && x.PhoneType == "12345"
|
|
|
921
|
+ incomin.newIncomingCount = modelcalllist.Where(x => x.BeginTime.Value.Hour == i
|
|
819
|
922
|
).Count();
|
|
820
|
923
|
newldcount += incomin.newIncomingCount;
|
|
821
|
924
|
incomin.newOncapacity = modelcalllist.Where(x => x.BeginTime.Value.Hour == i
|
|
822
|
|
- && x.CallState == 1 && x.PhoneType == "12345").Count();
|
|
|
925
|
+ && x.CallState == 1 ).Count();
|
|
823
|
926
|
newjtcount += incomin.newOncapacity;
|
|
824
|
927
|
|
|
825
|
928
|
var modelcalllistss = modelcalllist.Where(x => x.UserCode != null&& x.UserCode != "" && x.BeginTime.Value.Hour==i&&x.PhoneType =="12345").Select(x => x.UserCode).Distinct
|
|
826
|
|
- ();
|
|
|
929
|
+ ();
|
|
827
|
930
|
|
|
828
|
931
|
if (modelcalllistss != null && modelcalllistss.Count() > 0)
|
|
829
|
932
|
{
|