Kaynağa Gözat

档案信心编辑修改

gaobingyue 5 yıl önce
ebeveyn
işleme
8365ad780d

+ 6 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/RegRecords/RegRecordsController.cs

@@ -87,10 +87,14 @@ namespace CallCenterApi.Interface.Controllers.RegRecords
87 87
             Model.T_Rec_RegRecords dModel = dBLL.GetModel(id);
88 88
             if (dModel == null)
89 89
                 return Error("获取登记信息失败");
90
-
91
-            var cusmodel= new BLL.T_Cus_Customer().GetModel(dModel.F_CusID);
90
+            var cusmodel = new Model.T_Cus_Customer();
91
+            if (dModel.F_CusID>0) {
92
+                cusmodel = new BLL.T_Cus_Customer().GetModel(dModel.F_CusID);
92 93
             if(cusmodel==null)
93 94
                 return Error("获取档案信息失败");
95
+
96
+            }
97
+            
94 98
             var newobj = new
95 99
             {
96 100
                 model=dModel,