瀏覽代碼

修改bug

mengjie 7 年之前
父節點
當前提交
87f923575d

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

1016
                 //    taskmodel.F_Address = model.ExpandVchField12;//住址
1016
                 //    taskmodel.F_Address = model.ExpandVchField12;//住址
1017
                 #endregion
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
                 var tmodel = otBLL.GetModel(model.F_TaskId.Value);
1023
                 var tmodel = otBLL.GetModel(model.F_TaskId.Value);
1021
                 if (tmodel != null)
1024
                 if (tmodel != null)
1022
                 {
1025
                 {
1084
                     //    paperModel = newmodel
1087
                     //    paperModel = newmodel
1085
                     //};
1088
                     //};
1086
                     //return Success("获取详情成功", objy);
1089
                     //return Success("获取详情成功", objy);
1087
-                }
1090
+                }*/
1088
                 var objy = new
1091
                 var objy = new
1089
                 {
1092
                 {
1090
                     taskModel = taskmodel,
1093
                     taskModel = taskmodel,

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

389
         //添加/修改IVR号码归属地坐席关联
389
         //添加/修改IVR号码归属地坐席关联
390
         public ActionResult AddMobileUsers(int tellocid, int userid, int type)
390
         public ActionResult AddMobileUsers(int tellocid, int userid, int type)
391
         {
391
         {
392
+            
392
             ActionResult res = NoToken("未知错误,请重新登录");
393
             ActionResult res = NoToken("未知错误,请重新登录");
393
-            if (Request.IsAuthenticated)
394
+            if(Request.IsAuthenticated)
394
             {
395
             {
395
                 int userId = CurrentUser.UserData.F_UserId;
396
                 int userId = CurrentUser.UserData.F_UserId;
396
                 Model.T_Sys_UserAccount ua = new BLL.T_Sys_UserAccount().GetModel(userId);
397
                 Model.T_Sys_UserAccount ua = new BLL.T_Sys_UserAccount().GetModel(userId);
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
                 dModel = dBLL.GetModel(userid, tellocid);
447
                 dModel = dBLL.GetModel(userid, tellocid);
455
                 if (dModel != null)
448
                 if (dModel != null)
456
                 {
449
                 {
468
                 }
461
                 }
469
                 else
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
                     dModel.isdelete = 0;
473
                     dModel.isdelete = 0;
472
                     int n = new BLL.telloc_users().Add(dModel);
474
                     int n = new BLL.telloc_users().Add(dModel);
473
                     if (n > 0)
475
                     if (n > 0)