From cf25900d05a788e9052132b55e471695319542e0 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期五, 03 十二月 2021 15:40:49 +0800 Subject: [PATCH] t提交 --- 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