duhongyu 4 yıl önce
ebeveyn
işleme
a74a5c32e7

+ 2 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Assessment/DataAssessmentController.cs

@@ -432,6 +432,8 @@ namespace CallCenterApi.Interface.Controllers.Assessment
432 432
                 return Error("导出失败");
433 433
             }
434 434
         }
435
+
436
+     
435 437
         #endregion
436 438
     }
437 439
 }

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

@@ -74,7 +74,7 @@ namespace CallCenterApi.Interface.Controllers
74 74
                 string rjson = RedisHelper.StringGet("ztree_38new")?.ToString() ?? "";
75 75
                 if (!string.IsNullOrEmpty(rjson))
76 76
                 {
77
-                    return Success("加载成功", rjson.ToObject<DataTable>());
77
+                    return Success("加载成功", rjson);
78 78
                 }
79 79
             }
80 80
            
@@ -88,7 +88,7 @@ namespace CallCenterApi.Interface.Controllers
88 88
             List<TreeModelNew> modelList = BindTreeNew(dt, "0", tab2);
89 89
             if (pid == "38")
90 90
             {
91
-                RedisHelper.StringSet("ztree_38", modelList.ToJson());
91
+                RedisHelper.StringSet("ztree_38new", modelList.ToJson());
92 92
             }
93 93
             if (modelList.Count > 0)
94 94
             {

+ 21 - 0
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/DataAnalysisController.cs

@@ -474,6 +474,27 @@ 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
+        //}
477 498
 
478 499
     }
479 500
 }

+ 8 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -1034,7 +1034,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
1034 1034
                             sql += "and F_ToBereply=" + tobereply;
1035 1035
                             sql += " and F_WorkState = '" + strstate.Trim() + "' ";
1036 1036
                         }
1037
-
1037
+                        if (strstate.Trim() == ((int)EnumWorkState.dealed).ToString())
1038
+                        {
1039
+                            sql += "and F_WorkOrderID not in (select F_WorkOrderID from T_Bus_RemindRecord where F_Type=1 and F_IsDelete=0and F_Content != '推诿工单')";
1040
+                        }
1038 1041
                         //sql += " and F_WorkState = '" + strstate.Trim() + "' ";
1039 1042
                     }
1040 1043
                     else
@@ -1587,6 +1590,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1587 1590
                     order = "order by a.F_Level desc, a.F_CreateTime desc";
1588 1591
                     sql += " and (F_IsRelease !='" + 3 + "' or " +
1589 1592
                         "F_IsRelease is null) ";
1593
+                    sql += "and F_WorkOrderID not in (select F_WorkOrderID from T_Bus_RemindRecord where F_Type=1 and F_IsDelete=0and F_Content != '推诿工单')";
1590 1594
                     if (strstate.Trim() != "" && strstate != "undefined")
1591 1595
                     {
1592 1596
                         if (strstate.Trim() == ((int)EnumWorkState.neworder).ToString())
@@ -1845,6 +1849,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1845 1849
                     sql += " and (F_IsRelease !='" + 3 + "' or " +
1846 1850
                        "F_IsRelease is null) ";
1847 1851
                     sql += " and F_WorkState=" + (int)EnumWorkState.submit;
1852
+                    sql += "and F_WorkOrderID not in (select F_WorkOrderID from T_Bus_RemindRecord where F_Type=1 and F_IsDelete=0and F_Content != '推诿工单')";
1848 1853
                     sql += "and F_WorkOrderID in(select F_WorkOrderID from T_Bus_Feedback b WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_Type = 3 and F_IsAudit = 1 and F_Id  in (select  MAX(F_Id) from T_Bus_Feedback WITH(NOLOCK) where F_WorkOrderId in (select F_WorkOrderId from T_Bus_Feedback WITH(NOLOCK) where F_WorkOrderId = b.F_WorkOrderId  group by F_WorkOrderId  ) ) ) ";
1849 1854
                     if (User.F_RoleCode != "GLY" && User.F_RoleCode != "ZXLD" && User.F_RoleCode != "MTDD")
1850 1855
                     {
@@ -6586,6 +6591,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
6586 6591
             {
6587 6592
                 case "0"://督办-待办
6588 6593
                     sql += "  and F_WorkOrderID in(" + sqlsup + " and F_State =0 )";
6594
+                    sql += "and F_WorkState  !='9'";
6589 6595
                     break;
6590 6596
                 case "1"://督办-办理中
6591 6597
                     sql += "  and F_WorkOrderID in(" + sqlsup + " and F_State =1 ) and F_WorkState !='9' ";
@@ -10232,7 +10238,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
10232 10238
                             //    modelT_Bus_WorkOrder.F_WorkState = (int)EnumWorkState.submit;// 1;//提交领导
10233 10239
                             //}
10234 10240
                             #endregion
10235
-                            modelT_Bus_WorkOrder.F_CreateUser = User.F_UserCode;
10241
+                           // modelT_Bus_WorkOrder.F_CreateUser = User.F_UserCode;
10236 10242
                             modelT_Bus_WorkOrder.F_IsEnabled = 1;
10237 10243
                             modelT_Bus_WorkOrder.F_EnableTime = DateTime.Now;
10238 10244
                             modelT_Bus_WorkOrder.F_IsDelete = 0;