Commit 8cdf0c21 authored by yangyang's avatar yangyang

refactor(amos-boot-module-tcm): 临时修改企业类型证书过滤逻辑

- 注释掉了原有按企业类型获取证书类型列表的代码 - 直接使用固定证书类型列表进行过滤
parent 8d947879
...@@ -214,9 +214,11 @@ public class TzBaseEnterpriseInfoServiceImpl ...@@ -214,9 +214,11 @@ public class TzBaseEnterpriseInfoServiceImpl
List<BaseUnitLicenceDto> unitLicenceDtos = new ArrayList<>(); List<BaseUnitLicenceDto> unitLicenceDtos = new ArrayList<>();
List<BaseUnitLicence> unitLicencesCollect = Optional.ofNullable(unitLicences).orElse(Collections.emptyList()); List<BaseUnitLicence> unitLicencesCollect = Optional.ofNullable(unitLicences).orElse(Collections.emptyList());
if (!"监管机构".equals(companyType)) { if (!"监管机构".equals(companyType)) {
List<String> certTypeList = Arrays.asList(Optional.ofNullable(COMPANY_TYPE_CERT_TYPE_MAP.get(companyType)) // List<String> certTypeList = Arrays.asList(Optional.ofNullable(COMPANY_TYPE_CERT_TYPE_MAP.get(companyType))
.orElse("") // .orElse("")
.split(",")); // .split(","));
// 充装、检验检测、制造、设计、安改维
List<String> certTypeList = Arrays.asList("1231","1233","1234","1235","1236");
unitLicencesCollect = unitLicencesCollect.stream() unitLicencesCollect = unitLicencesCollect.stream()
.filter(unit -> unit.getCertTypeCode() != null && certTypeList.contains(unit.getCertTypeCode())) .filter(unit -> unit.getCertTypeCode() != null && certTypeList.contains(unit.getCertTypeCode()))
.collect(Collectors.toList()); .collect(Collectors.toList());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment