machenyang лет назад: 8
Родитель
Сommit
903936f6aa

BIN
codegit/.vs/AutobioCallCenter/v14/.suo


+ 19 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

@@ -242,7 +242,7 @@ namespace CallCenterApi.Interface.Controllers.tel
242 242
                         int pagesize = 10;
243 243
                         //除管理员外,各坐席只能看到自己的
244 244
                         if (ua.F_RoleId != 17)
245
-                            sql += " and CreateUserID = '" + userId + "'";
245
+                            sql += " and UserId = '" + userId + "'";
246 246
 
247 247
                         if (strcalltype.Trim() != "" && strcalltype != "undefined")
248 248
                         {
@@ -522,8 +522,8 @@ namespace CallCenterApi.Interface.Controllers.tel
522 522
                         int gdly = RequestString.GetFormInt("gdlx", 0);
523 523
                         //工单类型
524 524
                         int gdlx = RequestString.GetFormInt("gdlx", 0);
525
-                        //工单状态
526
-                        int gdzt = RequestString.GetFormInt("gdzt", 0);
525
+                        //工单状态  471 默认未处理
526
+                        int gdzt = RequestString.GetFormInt("gdzt", 471);
527 527
                         //反馈内容
528 528
                         string fkcont = RequestString.GetFormString("fkcont");
529 529
                         //快递信息
@@ -556,7 +556,21 @@ namespace CallCenterApi.Interface.Controllers.tel
556 556
                         //备注三
557 557
                         model.City = note3;
558 558
                         //默认为未处理
559
-                        model.State = 0;
559
+                        int gdstate = 0;
560
+                        string dep = DbHelperSQL.GetSingle("select F_ZXZName from [dbo].[T_Sys_SeatGroup],T_Sys_UserAccount where T_Sys_UserAccount.F_SeartGroupID =[dbo].[T_Sys_SeatGroup].F_ZXZID and F_UserCode ='" + ua.F_UserCode + "' ").ToString();
561
+                        if (dep == "市场组")
562
+                        {
563
+                            if (string.IsNullOrEmpty(fkcont.Trim()))
564
+                                gdstate = 1;
565
+                        }
566
+                        else
567
+                        {
568
+                            if (gdzt != 471)
569
+                                gdstate = 1;
570
+                        }
571
+                        model.State = gdstate;
572
+                        if (gdstate == 1)//如果直接为已处理 需要将lastdealuser改为当前坐席
573
+                            model.LastDealUser = ua.F_UserCode;
560 574
                         model.IsDel = 0;
561 575
                         model.IsReturn = 0;
562 576
                         model.IsReturnBak = 0;
@@ -565,6 +579,7 @@ namespace CallCenterApi.Interface.Controllers.tel
565 579
                         model.IsTimeOut = 0;
566 580
                         model.IsUserSend = 0;
567 581
                         model.IsAdminSend = 0;
582
+
568 583
                         ////原——将新增的工单插入待指派表中
569 584
                         //Model.T_Wo_WorkOrderTimeOut to = new BLL.T_Wo_WorkOrderTimeOut().GetModel(gdlx);
570 585
                         //if (to != null)