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();