From 78efdf47dccf3d5a04aa25cebc6bed02c0c062db Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 21 九月 2022 11:05:07 +0800
Subject: [PATCH] 提交
---
zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs | 8 ++++++--
zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs | 7 ++++++-
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs b/zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs
index e25676f..9563382 100644
--- a/zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs
@@ -129,6 +129,11 @@
{
dto = _cooperVisitService.Get(id);
+ var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(dto.Viscustomer);
+ if (cooperatecustomCustomerDTO != null)
+ {
+ dto.ViscustomerName = cooperatecustomCustomerDTO.Name;
+ }
}
else
{
@@ -144,7 +149,7 @@
}
}
}
- if (!string.IsNullOrWhiteSpace(Viscustomer))
+ if (!string.IsNullOrWhiteSpace(dto.Viscustomer))
{
ViewData["customer"] = new List<CooperatecustomCustomerDTO>();
}
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