From b20a34e8277267124f9708c2c97e92ed1052fa08 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期六, 12 十一月 2022 14:43:48 +0800
Subject: [PATCH] 自动抓取中标项目
---
zhengcaioa/Services/CooperVisitService.cs | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/zhengcaioa/Services/CooperVisitService.cs b/zhengcaioa/Services/CooperVisitService.cs
index 19f433a..27ccb94 100644
--- a/zhengcaioa/Services/CooperVisitService.cs
+++ b/zhengcaioa/Services/CooperVisitService.cs
@@ -247,7 +247,7 @@
/// 鑾峰彇鎵�鏈夋湁鏁堝悎浣滃鎴�
/// </summary>
/// <returns></returns>
- public List<CooperatecustomCustomerDTO> GetList(string[] id)
+ public List<CooperatecustomCustomerDTO> GetList(string[] id=null)
{
List<CooperatecustomCustomerDTO> result = new List<CooperatecustomCustomerDTO>();
if (id != null)
@@ -258,6 +258,12 @@
result = _mapper.Map<List<CooperatecustomCustomerDTO>>(listCooperatecustomCustomers);
}
+ else
+ {
+ var listCooperatecustomCustomers = _context.CooperatecustomCustomers.ToList();
+
+ result = _mapper.Map<List<CooperatecustomCustomerDTO>>(listCooperatecustomCustomers);
+ }
--
Gitblit v1.9.1