Просмотр исходного кода

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

lihai лет назад: 7
Родитель
Сommit
020a75f250

+ 13 - 6
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

@@ -773,12 +773,19 @@ namespace CallCenterApi.Interface.Controllers.tel
773 773
                             }
774 774
                             else
775 775
                             {
776
-                                userModel.F_Province = prov;
777
-                                userModel.F_CustomerIndustry = lddep;
778
-                                userModel.F_RelationShipClass = fkdep;
779
-                                userModel.F_CustomerName = callCustomer;
780
-                                userModel.F_Mobile = tel;
781
-                                userModel.F_Telephone = tel;
776
+                                if (!string.IsNullOrEmpty(prov))
777
+                                    userModel.F_Province = prov;
778
+                                if (!string.IsNullOrEmpty(lddep))
779
+                                    userModel.F_CustomerIndustry = lddep;
780
+                                if (!string.IsNullOrEmpty(fkdep))
781
+                                    userModel.F_RelationShipClass = fkdep;
782
+                                if (!string.IsNullOrEmpty(callCustomer))
783
+                                    userModel.F_CustomerName = callCustomer;
784
+                                if (!string.IsNullOrEmpty(tel))
785
+                                {
786
+                                    userModel.F_Mobile = tel;
787
+                                    userModel.F_Telephone = tel;
788
+                                }
782 789
                                 new BLL.T_Cus_CustomerBase().Update(userModel);
783 790
                             }
784 791
                             #endregion