From 688b1ea208da068bfd5911eacc4d2be023219a7c Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 24 二月 2023 13:51:21 +0800
Subject: [PATCH] 1、APP和短信同时推送,没有加APP的只推短信。
2、有归属的客户就留客户经理的电话,没有归属的客户留公司400电话。

---
 zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs b/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs
index 595188a..1d452b9 100644
--- a/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs
@@ -133,7 +133,11 @@
             if (!String.IsNullOrEmpty(id))
             {
                 dto = _intentionVisitService.Get(id);
-
+                var intentionCustomerDTO = _intentionCustomerService.Get(dto.Viscustomer);
+                if (intentionCustomerDTO != null)
+                {
+                    dto.ViscustomerName = intentionCustomerDTO.Name;
+                }
                 //dto.Viscustomer = Viscustomer;
                 IntentionVisitDTOSearch searchEntity = new IntentionVisitDTOSearch();
                 searchEntity.page = 1;
@@ -178,7 +182,7 @@
 
 
             }
-            if (!string.IsNullOrWhiteSpace(Viscustomer))
+            if (!string.IsNullOrWhiteSpace(dto.Viscustomer))
             {
                 ViewData["customer"] = new List<IntentionCustomerDTO>();
             }

--
Gitblit v1.9.1