From 44f861f9cf9a7ff6a59a49e524ee5c3a4370da8c Mon Sep 17 00:00:00 2001 From: zhangxiaofeng <1939543722@qq.com> Date: Wed, 7 Aug 2024 16:34:19 +0800 Subject: [PATCH] =?UTF-8?q?ISF=E4=BF=9D=E5=AD=98=E6=97=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=85=AC=E5=8F=B8=E7=B1=BB=E5=9E=8B=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B3=E5=87=BA=E7=8E=B0=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=85=AC=E5=8F=B8=E7=B1=BB=E5=9E=8B=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/djy.Service/ISF/IsfService.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/web/djy.Service/ISF/IsfService.cs b/web/djy.Service/ISF/IsfService.cs index fa8df32..f83fcbc 100644 --- a/web/djy.Service/ISF/IsfService.cs +++ b/web/djy.Service/ISF/IsfService.cs @@ -21,6 +21,8 @@ namespace djy.Service.Isf public class IsfService : ServBase, IIsfService { private readonly IWebHostEnvironment env; + string[] ISF10CompanyTypeCode = new string[] { "CS", "BY", "LG", "MF", "CN", "SE", "ST", "IM" }; + string[] ISF5CompanyTypeCode = new string[] { "ST", "BKP" }; public IsfService(IWebHostEnvironment env) { @@ -184,6 +186,15 @@ namespace djy.Service.Isf //DbBus.Get(DbList.AMSCenter).Insert(history).ExecuteAffrows(); if (dto.companyList != null && dto.companyList.Count() > 0) { + if (dto.InFoType == "1") + { + dto.companyList = dto.companyList.Where(x => ISF5CompanyTypeCode.Contains(x.CompanyType)).ToList(); + } + else if (dto.InFoType == "2") + { + dto.companyList = dto.companyList.Where(x => ISF10CompanyTypeCode.Contains(x.CompanyType)).ToList(); + } + foreach (var item in dto.companyList) { ISF_Company companylist = item.MapTo();