浏览代码

修改bug

mengjie 7 年之前
父节点
当前提交
87f923575d

+ 5 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallOutPlanController.cs

@@ -1016,7 +1016,10 @@ namespace CallCenterApi.Interface.Controllers.callout
1016 1016
                 //    taskmodel.F_Address = model.ExpandVchField12;//住址
1017 1017
                 #endregion
1018 1018
 
1019
-                var anslist = ansBLL.GetModelList(" F_TaskID=" + model.F_TaskId.Value + " and F_CusTelID=" + id + " ");
1019
+                taskmodel.F_TaskName = "";//任务名称                
1020
+                taskmodel.F_TaskRemark = "";//任务备注   
1021
+
1022
+                /*var anslist = ansBLL.GetModelList(" F_TaskID=" + model.F_TaskId.Value + " and F_CusTelID=" + id + " ");
1020 1023
                 var tmodel = otBLL.GetModel(model.F_TaskId.Value);
1021 1024
                 if (tmodel != null)
1022 1025
                 {
@@ -1084,7 +1087,7 @@ namespace CallCenterApi.Interface.Controllers.callout
1084 1087
                     //    paperModel = newmodel
1085 1088
                     //};
1086 1089
                     //return Success("获取详情成功", objy);
1087
-                }
1090
+                }*/
1088 1091
                 var objy = new
1089 1092
                 {
1090 1093
                     taskModel = taskmodel,

+ 12 - 10
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/MobiledataController.cs

@@ -389,8 +389,9 @@ namespace CallCenterApi.Interface.Controllers.tel
389 389
         //添加/修改IVR号码归属地坐席关联
390 390
         public ActionResult AddMobileUsers(int tellocid, int userid, int type)
391 391
         {
392
+            
392 393
             ActionResult res = NoToken("未知错误,请重新登录");
393
-            if (Request.IsAuthenticated)
394
+            if(Request.IsAuthenticated)
394 395
             {
395 396
                 int userId = CurrentUser.UserData.F_UserId;
396 397
                 Model.T_Sys_UserAccount ua = new BLL.T_Sys_UserAccount().GetModel(userId);
@@ -442,15 +443,7 @@ namespace CallCenterApi.Interface.Controllers.tel
442 443
                 //}
443 444
 
444 445
 
445
-                dModel = new Model.telloc_users();
446
-                if (!string.IsNullOrWhiteSpace(tellocid.ToString()))
447
-                {
448
-                    dModel.tellocid = tellocid;
449
-                }
450
-                if (!string.IsNullOrWhiteSpace(userid.ToString()))
451
-                {
452
-                    dModel.userid = userid;
453
-                }
446
+                
454 447
                 dModel = dBLL.GetModel(userid, tellocid);
455 448
                 if (dModel != null)
456 449
                 {
@@ -468,6 +461,15 @@ namespace CallCenterApi.Interface.Controllers.tel
468 461
                 }
469 462
                 else
470 463
                 {
464
+                    dModel = new Model.telloc_users();
465
+                    if (!string.IsNullOrWhiteSpace(tellocid.ToString()))
466
+                    {
467
+                        dModel.tellocid = tellocid;
468
+                    }
469
+                    if (!string.IsNullOrWhiteSpace(userid.ToString()))
470
+                    {
471
+                        dModel.userid = userid;
472
+                    }
471 473
                     dModel.isdelete = 0;
472 474
                     int n = new BLL.telloc_users().Add(dModel);
473 475
                     if (n > 0)