duhongyu 3 lat temu
rodzic
commit
1290e494f1

+ 40 - 7
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/knowledge/KnowledgeController.cs

@@ -264,11 +264,19 @@ namespace CallCenterApi.Interface.Controllers.knowledge
264 264
             return Content(obj.ToJson());
265 265
         }
266 266
 
267
-        public ActionResult GetDeductLsit(int infoid = 0)
267
+        public ActionResult GetDeductLsit(int infoid = 0,int deptid=0)
268 268
         {
269
-            if (infoid <= 0)
270
-                return Error("请选择知识库");
271
-            List<Model.T_RepositoryLog> logList = new BLL.T_RepositoryLog().GetModelList(" 1=1 and F_Action=4 and F_RepositoryId= " + infoid);
269
+            string sql = "";
270
+             if (infoid>0)
271
+            {
272
+                sql += "and F_RepositoryId= '" + infoid+"'";
273
+            }
274
+            if (User .F_RoleCode =="WLDW")
275
+            {
276
+                sql += "and F_Expand1= '" + User .F_DeptId  + "'";
277
+            }
278
+          
279
+            List<Model.T_RepositoryLog> logList = new BLL.T_RepositoryLog().GetModelList(" 1=1 and F_Action=4 ");
272 280
 
273 281
             return Success("获取成功", logList);
274 282
         }
@@ -555,17 +563,42 @@ namespace CallCenterApi.Interface.Controllers.knowledge
555 563
 
556 564
             if(action==4)
557 565
             {
558
-                logModel.F_Title = "扣分";
566
+                logModel.F_Title = rmodel.F_Title;
559 567
                 logModel.F_Content = User.F_UserCode +"扣分"+Math .Abs ((float )rmodel.F_Score )+
560 568
                     ",扣分原因:"+ rmodel.F_Reason ;
569
+                var demandsModel = new BLL.T_Repository_List_Demands().GetModelList
570
+                     ("F_RepositoryId='" + rmodel.F_RepositoryId + "' and F_IsDelete=0");
571
+                try
572
+                {
573
+                    if (demandsModel != null && demandsModel.Count > 0)
574
+                    {
575
+                        if (demandsModel.LastOrDefault().F_Deptid > 0)
576
+                        {
577
+                            var dapt = new BLL.T_Sys_Department().GetModel((int)demandsModel.LastOrDefault().F_Deptid);
578
+                            if (dapt != null)
579
+                            {
580
+                                logModel.F_KeyWords = dapt.F_DeptName;
581
+                                logModel.F_Expand1 = dapt.F_DeptId.ToString ();
582
+                            }
583
+                               
584
+                        }
585
+
586
+                    }
587
+                }
588
+                catch
589
+                {
590
+
591
+                }
592
+               
593
+               
561 594
             }
562 595
             else
563 596
             {
564 597
                 logModel.F_Title = rmodel.F_Title;
565 598
                 logModel.F_Content = rmodel.F_Content;
566
-
599
+                logModel.F_KeyWords = rmodel.F_KeyWords;
567 600
             }
568
-            logModel.F_KeyWords = rmodel.F_KeyWords;
601
+           
569 602
             logModel.F_RepositoryId = rmodel.F_RepositoryId;
570 603
             logModel.F_Url = rmodel.F_Url;
571 604
             logModel.F_CreateBy = User.F_UserId;

+ 3 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/knowledge/RepositoryController.cs

@@ -541,9 +541,10 @@ namespace CallCenterApi.Interface.Controllers.knowledge
541 541
 
542 542
             int recordCount = 0;
543 543
             dt = BLL.PagerBLL.GetListPager(
544
-                "T_Repository_List_Demands",
544
+                "T_Repository_List_Demands a",
545 545
                 "F_DemandsId",
546
-                "*,dbo.GetDeptName(F_Deptid) F_DeptName,dbo.GetUserName(F_CreateUser) as F_CreateUserName,dbo.GetUserName(F_SubmitUser) as F_SubmitUserName",
546
+                "*,dbo.GetDeptName(F_Deptid) F_DeptName,dbo.GetUserName(F_CreateUser) as F_CreateUserName,dbo.GetUserName(F_SubmitUser) as F_SubmitUserName" +
547
+                ",(select F_Score from T_RepositoryInformation where F_RepositoryId=a.F_RepositoryId) as F_Score",
547 548
                 sql,
548 549
                 "ORDER BY F_CreateTime desc",
549 550
                 pagesize,

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

@@ -433,7 +433,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
433 433
 
434 434
             if (deptid != 0)
435 435
             {
436
-                sql += " and  F_MainDeptId in (select F_DeptId from  GetDeptId ('"+ deptid + "'))";
436
+                sql += " and  (F_MainDeptId in (select F_DeptId from  GetDeptId ('" + deptid + "')) or F_MainDeptID3='" + deptid + "')";
437 437
             }
438 438
 
439 439
 

+ 5 - 5
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/hb_affairsController.cs

@@ -429,11 +429,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
429 429
                         else
430 430
                         {
431 431
                             type = "拒绝";
432
-                            if (modelT_Bus_AssignedInfo != null && modelT_Bus_DelayTime.F_AssignedId != 0)
433
-                            {
434
-                                modelT_Bus_AssignedInfo.F_IsSure = 5;
435
-                                assignBLL.Update(modelT_Bus_AssignedInfo);
436
-                            }
432
+                            //if (modelT_Bus_AssignedInfo != null && modelT_Bus_DelayTime.F_AssignedId != 0)
433
+                            //{
434
+                            //    modelT_Bus_AssignedInfo.F_IsSure = 1;
435
+                            //    assignBLL.Update(modelT_Bus_AssignedInfo);
436
+                            //}
437 437
 
438 438
                             modelT_Bus_DelayTime.F_IsAudit = 2;//审核
439 439
                             modelT_Bus_DelayTime.F_AuditUser = result["AUDIT_NAME"] == null ? "" : result["AUDIT_NAME"].ToString();

+ 3 - 1
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Models/Common/ButtonGroup.cs

@@ -873,7 +873,7 @@ namespace CallCenterApi.Interface.Models.Common
873 873
                     if (code == "WLDW" || code == "DDZG")
874 874
                     {
875 875
                         buttons.Add(feedback());
876
-                        buttons.Add(delay());
876
+                      
877 877
                         if (InfoSource == "2580")
878 878
                             buttons.Add(ejdelay());
879 879
                         else
@@ -982,6 +982,8 @@ namespace CallCenterApi.Interface.Models.Common
982 982
                     if (code == "SPZ" || code == "SPZJZ")
983 983
                     {
984 984
                         buttons.Add(reload()); buttons.Add(reject());
985
+                        buttons.Add(edit());
986
+                        buttons.Add(back());
985 987
                     }
986 988
                     break;
987 989
                 case "14":