From 6e2b929cf381e2320ba6e7dec56c0371124d2b51 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期六, 27 八月 2022 15:03:00 +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