From c54d598cc71ca26f262d498e034b64627d7b6616 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 07 七月 2022 15:25:19 +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