duhongyu il y a 3 ans
Parent
commit
a524ad867a

+ 2 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/APPController.cs

@@ -514,9 +514,9 @@ namespace CallCenterApi.Interface.Controllers
514 514
                     return Error("添加失败");
515 515
                 else
516 516
                 {
517
-                    string userinfo = User.depname + "(" + User.F_UserCode + ")";
517
+                  //  string userinfo = User.depname + "(" + User.F_UserCode + ")";
518 518
                     string message = "";
519
-                message = userinfo + " 登记了工单,工单编号:" + modelT_Bus_WorkOrder.F_WorkOrderId;
519
+                message = "市民" + " 登记了工单,工单编号:" + modelT_Bus_WorkOrder.F_WorkOrderId;
520 520
                 
521 521
                     Task.Run(() =>
522 522
                     {

+ 3 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Sms/SMSController.cs

@@ -2,6 +2,7 @@
2 2
 using CallCenterApi.Common;
3 3
 using CallCenterApi.DB;
4 4
 using CallCenterApi.Interface.Controllers.Base;
5
+using CallCenterApi.Interface.Controllers.Sms;
5 6
 using Newtonsoft.Json;
6 7
 using Newtonsoft.Json.Linq;
7 8
 using System;
@@ -243,8 +244,8 @@ namespace CallCenterApi.Interface.Controllers
243 244
         {
244 245
 
245 246
            
246
-              string result = SmsNewHelper.Send(phone, "市长信箱留言网址:https://zwfw.anyang.gov.cn/#/mayor_mail");
247
-           
247
+             // string result = SmsNewHelper.Send(phone, "市长信箱留言网址:https://zwfw.anyang.gov.cn/#/mayor_mail");
248
+            string result = SmsNewController.AddSmS(0, "您可在市长信箱进行留言,留言地址:https://zwfw.anyang.gov.cn/#/mayor_mail", phone, "681239973756440576", "","");
248 249
             if (result==string .Empty )
249 250
                 return Success("发送成功");
250 251
             else

+ 107 - 4
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/WorkOrderReportController.cs

@@ -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
                 {

+ 17 - 12
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/APPSController.cs

@@ -3134,32 +3134,37 @@ namespace CallCenterApi.Interface.Controllers.workorder
3134 3134
             var model = new BLL.T_SMS_RecvSMS().GetModelList("DATEDIFF (DAY ,RecvTime ,GETDATE ())=0 and RecvModemIMEI='701484974439813120' order by RecvTime desc ");
3135 3135
             if (model!=null && model.Count >0)
3136 3136
             {
3137
+
3137 3138
                 int t = int.Parse(objres.ToString());
3138
-                int count =int .Parse ( model.First().RecvModemIMEI)+1000;
3139
-                if (t > count)
3139
+                if (t >3000)
3140 3140
                 {
3141
-                    string mag = "[\"超"+ count + "\"]";
3142
-                    var userlist = new BLL.T_Sys_UserAccount().GetModelList(" F_DeleteFlag =0 and F_RoleId in (1, 4, 11)");
3143
-                    if (userlist != null && userlist.Count > 0)
3141
+                    int count = int.Parse(model.First().RecvModemIMEI) + 1000;
3142
+                    if (t > count)
3144 3143
                     {
3145
-                        foreach (var it in userlist)
3144
+                        string mag = "[\"" + count + "\"]";
3145
+                        var userlist = new BLL.T_Sys_UserAccount().GetModelList(" F_DeleteFlag =0 and F_RoleId in (1, 4, 11)");
3146
+                        if (userlist != null && userlist.Count > 0)
3146 3147
                         {
3147
-                            if (!string.IsNullOrEmpty(it.F_Mobile))
3148
+                            foreach (var it in userlist)
3148 3149
                             {
3149
-                                string v = SmsNewController.AddSmS(0, "当前务已超"+ count + "。请关注", it.F_Mobile, "701484974439813120", mag, "1000");
3150
+                                if (!string.IsNullOrEmpty(it.F_Mobile))
3151
+                                {
3152
+                                    string v = SmsNewController.AddSmS(0, "当前话务已超过" + count + "。请关注", it.F_Mobile, "701484974439813120", mag, "1000");
3153
+                                }
3150 3154
                             }
3151
-                        }
3152 3155
 
3156
+                        }
3153 3157
                     }
3154 3158
                 }
3159
+               
3155 3160
 
3156 3161
             }
3157 3162
             else
3158 3163
             {
3159
-                if (int.Parse(objres.ToString()) > 1000)
3164
+                if (int.Parse(objres.ToString()) > 3000)
3160 3165
                 {
3161 3166
               
3162
-                    string mag = "[\"超1000"  + "\"]";
3167
+                    string mag = "[\"3000"  + "\"]";
3163 3168
                     var userlist = new BLL.T_Sys_UserAccount().GetModelList(" F_DeleteFlag =0 and F_RoleId in (1, 4, 11)");
3164 3169
                     if (userlist!=null && userlist.Count >0)
3165 3170
                     {
@@ -3167,7 +3172,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3167 3172
                         {
3168 3173
                             if (!string.IsNullOrEmpty(it.F_Mobile ))
3169 3174
                             {
3170
-                                string v = SmsNewController.AddSmS(0, "当前务已超1000。请关注", it.F_Mobile, "701484974439813120", mag, "1000");
3175
+                                string v = SmsNewController.AddSmS(0, "当前话务已超过3000。请关注", it.F_Mobile, "701484974439813120", mag, "3000");
3171 3176
                             }
3172 3177
                         }
3173 3178
                         

Fichier diff supprimé car celui-ci est trop grand
+ 20 - 16
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs


Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
CallCenterCommon/CallCenter.QuartzService/SatisfactionClose.cs


+ 1 - 1
CallCenterCommon/CallCenter.QuartzService/ZhengWuDuiJie.cs

@@ -59,7 +59,7 @@ namespace CallCenter.QuartzService
59 59
         private void submit_dept_crnt_status(object sender, EventArgs e)
60 60
 
61 61
         {
62
-            var Dataurl = HttpMethods.HttpPost("http://docking.zwfw.anyang.gov.cn:9998/APPS/Reminder");
62
+          //  var Dataurl = HttpMethods.HttpPost("http://docking.zwfw.anyang.gov.cn:9998/APPS/Reminder");
63 63
             string token = GetToken();
64 64
            
65 65
             paras paras = new paras();