From 52267147e624f3a0daef4870ba72f023ef9162a9 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期六, 07 十月 2023 12:46:29 +0800
Subject: [PATCH] 修改中国政府采购网爬虫规则
---
zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs | 22 +++++++++++++++++++---
1 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs b/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs
index 9c398df..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;
@@ -149,6 +153,11 @@
if (!string.IsNullOrWhiteSpace(Viscustomer))
{
dto.Viscustomer = Viscustomer;
+ var intentionCustomerDTO = _intentionCustomerService.Get(Viscustomer);
+ if (intentionCustomerDTO != null)
+ {
+ dto.ViscustomerName = intentionCustomerDTO.Name;
+ }
IntentionVisitDTOSearch searchEntity = new IntentionVisitDTOSearch();
searchEntity.page = 1;
searchEntity.rows = 1000;
@@ -173,9 +182,16 @@
}
+ if (!string.IsNullOrWhiteSpace(dto.Viscustomer))
+ {
+ ViewData["customer"] = new List<IntentionCustomerDTO>();
+ }
+ else
+ {
+ ViewData["customer"] = _intentionCustomerService.GetList();
+ }
-
- ViewData["customer"] = _intentionCustomerService.GetList();
+
--
Gitblit v1.9.1