Sfoglia il codice sorgente

2、来电弹屏省份保存过后,客户再打进来不显示省份

lihai 7 anni fa
parent
commit
34a09a4577

+ 8 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerController.cs

244
                         model = bll.GetModel(cid);
244
                         model = bll.GetModel(cid);
245
                         if (model != null)
245
                         if (model != null)
246
                         {
246
                         {
247
-                            model.F_CustomerName = name;
248
-                            model.F_Province = province;
249
-                            model.F_CustomerIndustry = customerindustry;
250
-                            model.F_Telephone = mobile;
247
+                            if (!string.IsNullOrEmpty(name))
248
+                                model.F_CustomerName = name;
249
+                            if (!string.IsNullOrEmpty(province))
250
+                                model.F_Province = province;
251
+                            if (!string.IsNullOrEmpty(customerindustry))
252
+                                model.F_CustomerIndustry = customerindustry;
253
+                            if (!string.IsNullOrEmpty(mobile))
254
+                                model.F_Telephone = mobile;
251
                             if (bll.Update(model))
255
                             if (bll.Update(model))
252
                             {
256
                             {
253
                                 return Success("修改成功!", model.F_CustomerId);
257
                                 return Success("修改成功!", model.F_CustomerId);