Ver Código Fonte

编辑档案信息 修改

gaobingyue 5 anos atrás
pai
commit
bd1df28409

+ 9 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/RegRecords/RegRecordsController.cs

@@ -116,9 +116,15 @@ namespace CallCenterApi.Interface.Controllers.RegRecords
116 116
             var model = dBLL.GetModelList("F_CallId='" + callid + "'").FirstOrDefault();
117 117
             if (model == null)
118 118
                 return Error("获取登记信息失败");
119
-            var cusmodel = new BLL.T_Cus_Customer().GetModel(model.F_CusID);
120
-            if (cusmodel == null)
121
-                return Error("获取档案信息失败");
119
+            var cusmodel = new Model.T_Cus_Customer();
120
+            if (model.F_CusID > 0)
121
+            {
122
+                 cusmodel = new BLL.T_Cus_Customer().GetModel(model.F_CusID);
123
+                if (cusmodel == null)
124
+                    return Error("获取档案信息失败");
125
+            }
126
+            
127
+            
122 128
             var newobj = new
123 129
             {
124 130
                 model = model,