ソースを参照

知识库序号,历史工单屏蔽,

duhongyu 4 年 前
コミット
c1bf79eded

File diff suppressed because it is too large
+ 2 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/FunctionsController.cs


File diff suppressed because it is too large
+ 2 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/HotspotGlossaryController.cs


File diff suppressed because it is too large
+ 2 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/LawGuideController.cs


File diff suppressed because it is too large
+ 3 - 3
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/NounInterpretationController.cs


File diff suppressed because it is too large
+ 2 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/PolicyController.cs


+ 3 - 3
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Wiki/ProfessorController.cs

@@ -74,7 +74,7 @@ namespace CallCenterApi.Interface.Controllers.Wiki
74 74
 
75 75
             if (isdc > 0)
76 76
             {
77
-                string cols = "(case when a.F_Id <100 then RIGHT ('00'+CONVERT (varchar(10),a.F_Id),3)   else  CONVERT(varchar(10), a.F_Id) end) as 序号,F_HangYe as 所属行业 ,F_DanWei as 专家单位,F_XingMing as 专家姓名,F_KeShi as 科室,F_ZhiWu as 职务,F_ShouJi as 手机号码,F_DianHua as 办公电话,F_FaBuShiJian as 发布日期,F_FaBuRen as 发布人,F_FaBuDanWei as 上报单位,F_BiaoShiBianMa as 标识编码";
77
+                string cols = "'A'+ RIGHT ('00000'+CONVERT (varchar(10),a.F_Id),6) as 序号,F_HangYe as 所属行业 ,F_DanWei as 专家单位,F_XingMing as 专家姓名,F_KeShi as 科室,F_ZhiWu as 职务,F_ShouJi as 手机号码,F_DianHua as 办公电话,F_FaBuShiJian as 发布日期,F_FaBuRen as 发布人,F_FaBuDanWei as 上报单位,F_BiaoShiBianMa as 标识编码";
78 78
                 var dtdc = DbHelperSQL.Query(" select " + cols + " from T_Wiki_Professor a with(nolock) where 1=1 " + sql).Tables[0];
79 79
                 var msg = new NPOIHelper().ExportToExcel("政策专家", dtdc);
80 80
                 if (msg == "")
@@ -89,9 +89,9 @@ namespace CallCenterApi.Interface.Controllers.Wiki
89 89
 
90 90
             int recordCount = 0;
91 91
             dt = BLL.PagerBLL.GetListPager(
92
-                "T_Wiki_Professor with(nolock)",
92
+                "T_Wiki_Professor a with(nolock)",
93 93
                 "F_Id",
94
-                "*",
94
+                "a.*,'A'+ RIGHT ('00000'+CONVERT (varchar(10),a.F_Id),6) as 序号",
95 95
                 sql,
96 96
                 "ORDER BY F_DianJiLiang,F_CreateTime DESC",
97 97
                 pagesize,

+ 31 - 1
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/YSReportController.cs

@@ -19,6 +19,36 @@ namespace CallCenterApi.Interface.Controllers.report
19 19
     [Authority]
20 20
     public class YSReportController : BaseController
21 21
     {
22
-       
22
+        /// <summary>
23
+        /// 营商统计工作报表
24
+        /// </summary>
25
+        /// <param name="starttime"></param>
26
+        /// <param name="endtime"></param>
27
+        /// <returns></returns>
28
+        public ActionResult TJGongZuo(DateTime ?  starttime, DateTime? endtime, bool isdc = false)
29
+        {
30
+            string strdate = ""; string edate = "";
31
+            if (starttime==null )
32
+            {
33
+                strdate = new DateTime(DateTime .Now .Year, DateTime.Now.Month, 1) .ToString("yyyy-MM-dd HH:mm:ss");
34
+            }
35
+            else
36
+            {
37
+                strdate = starttime.Value.ToString("yyyy-MM-dd HH:mm:ss");
38
+
39
+            }
40
+            if (endtime == null)
41
+            {
42
+                edate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
43
+
44
+
45
+            }
46
+            else
47
+            {
48
+                edate = endtime.Value.ToString("yyyy-MM-dd HH:mm:ss");
49
+            }
50
+
51
+            return Success("");
52
+        }
23 53
     }
24 54
 }

+ 41 - 3
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/APPSController.cs

@@ -1349,7 +1349,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1349 1349
             }
1350 1350
             else
1351 1351
                 return Error("请选择收藏人");
1352
-           
1352
+            sql += "and F_CreateTime>='2019-08-15 00:00:00'";
1353 1353
           //  sql += "and F_Administrative='00'";
1354 1354
             string orderby = "ORDER BY F_CreateTime DESC";
1355 1355
             int recordCount = 0;
@@ -3143,7 +3143,26 @@ namespace CallCenterApi.Interface.Controllers.workorder
3143 3143
             }
3144 3144
             if (strstarttime.Trim() != "" && strstarttime != "undefined")
3145 3145
             {
3146
-                sql += " and datediff(day,F_CreateTime,'" + strstarttime + "')<=0 ";
3146
+                try
3147
+                {
3148
+                    if (DateTime.Parse(strstarttime) > DateTime.Parse("2021-08-15 00:00:00"))
3149
+                    {
3150
+                        sql += " and datediff(day,F_CreateTime,'" + strstarttime + "')<=0 ";
3151
+                    }
3152
+                    else
3153
+                    {
3154
+                        sql += " and datediff(day,F_CreateTime,'2019-08-15 00:00:00')<=0 ";
3155
+                    }
3156
+                }
3157
+                catch
3158
+                {
3159
+                    sql += " and datediff(day,F_CreateTime,'" + strstarttime + "')<=0 ";
3160
+                }
3161
+            }
3162
+            else
3163
+            {
3164
+                sql += " and datediff(day,F_CreateTime,'2019-08-15 00:00:00')<=0 ";
3165
+               
3147 3166
             }
3148 3167
             if (strendtime.Trim() != "" && strendtime != "undefined")
3149 3168
             {
@@ -3540,7 +3559,26 @@ namespace CallCenterApi.Interface.Controllers.workorder
3540 3559
             }
3541 3560
             if (strstarttime.Trim() != "" && strstarttime != "undefined")
3542 3561
             {
3543
-                sql += " and datediff(day,F_CreateTime,'" + strstarttime + "')<=0 ";
3562
+                try
3563
+                {
3564
+                    if (DateTime.Parse(strstarttime) > DateTime.Parse("2021-08-15 00:00:00"))
3565
+                    {
3566
+                        sql += " and datediff(day,F_CreateTime,'" + strstarttime + "')<=0 ";
3567
+                    }
3568
+                    else
3569
+                    {
3570
+                        sql += " and datediff(day,F_CreateTime,'2019-08-15 00:00:00')<=0 ";
3571
+                    }
3572
+                }
3573
+                catch
3574
+                {
3575
+                    sql += " and datediff(day,F_CreateTime,'" + strstarttime + "')<=0 ";
3576
+                }
3577
+            }
3578
+            else
3579
+            {
3580
+                sql += " and datediff(day,F_CreateTime,'2019-08-15 00:00:00')<=0 ";
3581
+
3544 3582
             }
3545 3583
             if (strendtime.Trim() != "" && strendtime != "undefined")
3546 3584
             {

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

@@ -1067,7 +1067,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1067 1067
                                 }
1068 1068
                                 else
1069 1069
                                 {
1070
-                                    sql += "and F_WorkOrderID  in (select F_WorkOrderID from T_Bus_RemindRecord where F_Type=1 and F_IsDelete=0 and  (F_Content != '推诿工单' or F_Content is null  ) and F_State!=2 and F_IsExamine=1)";
1070
+                                    sql += "and F_WorkOrderID  in (select F_WorkOrderID from T_Bus_RemindRecord where F_Type=1 and F_IsDelete=0 and  (F_Content != '推诿工单' or F_Content is null  ) and F_State not in (0,2) and F_IsExamine=1 )";
1071 1071
 
1072 1072
                                 }
1073 1073
                             }
@@ -1558,6 +1558,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1558 1558
                         btns.Remove(butt);
1559 1559
                     if (Int32.Parse(strtab) == 0 && state == 6)
1560 1560
                     {
1561
+                        if (User.F_RoleCode.ToUpper() != "ZXHWY")
1561 1562
                         btns.Add(ButtonGroup.turnsee());
1562 1563
                     }
1563 1564
                     if (Int32.Parse(strtab) == 0 && state == 3)

+ 1 - 1
CallCenterCommon/CallCenter.Utility/NPOI/NPOIHelper.cs

@@ -902,7 +902,7 @@ namespace CallCenter.Utility
902 902
 
903 903
 
904 904
 
905
-        private string [] Merger = {"来电量", "接通量", "未接通","主动放弃","接通率"};
905
+       
906 906
         //
907 907
        
908 908
         /// <summary>