Commit 567ef88c authored by 韩桐桐's avatar 韩桐桐

fix(jg):个人主体新增撬装式压力容器时过滤出了气瓶,应该只保留固定式压力容器

parent bd990199
......@@ -507,9 +507,10 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
// 初始化collect列表
List<DictionarieValueModel> collect = new ArrayList<>();
// 使用单位 包含 企业的使用单位类型 or 个人主体
// 使用单位 && 业务场景businessScenarios为1(场景选择)&& 设备种类为2000(压力容器) =》 设备类别只保留固定式压力容器(2100)
// 使用单位 && 业务场景businessScenarios为0(场景选择)&& 设备种类为2000(压力容器) =》 设备类别排除固定式压力容器(2100)
boolean shouldInclude2100 = CompanyTypeEnum.USE.getName().equals(companyType) && "1".equals(businessScenarios) && "2000".equals(equList);
boolean shouldInclude2100 = (CompanyTypeEnum.USE.getName().equals(companyType) || CompanyTypeEnum.INDIVIDUAL.getName().equals(companyType)) && "1".equals(businessScenarios) && "2000".equals(equList);
collect = result.stream()
.filter(x -> shouldInclude2100 == "2100".equals(x.getDictDataKey()))
.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