Commit 4a5849ff authored by suhuiguang's avatar suhuiguang

1.解决生产单位类型等脏数据问题,健壮性处理,不再显示脏数据

parent eff9f470
...@@ -212,8 +212,9 @@ public class TzBaseEnterpriseInfoServiceImpl ...@@ -212,8 +212,9 @@ public class TzBaseEnterpriseInfoServiceImpl
if ("监管机构".equals(companyType)) { if ("监管机构".equals(companyType)) {
unitLicencesCollect = unitLicences; unitLicencesCollect = unitLicences;
} else { } else {
// 解决脏数据问题,脏数据不再显示
unitLicencesCollect = unitLicences.stream() unitLicencesCollect = unitLicences.stream()
.filter(baseUnitLicence -> COMPANY_TYPE_CERT_TYPE_MAP.get(companyType).contains((baseUnitLicence.getCertTypeCode()))) .filter(baseUnitLicence -> baseUnitLicence.getCertTypeCode() != null && COMPANY_TYPE_CERT_TYPE_MAP.get(companyType).contains((baseUnitLicence.getCertTypeCode())))
.collect(Collectors.toList()); .collect(Collectors.toList());
} }
if (!ValidationUtil.isEmpty(unitLicencesCollect)) { if (!ValidationUtil.isEmpty(unitLicencesCollect)) {
......
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