Browse Source

【五大图层】如果该客户没有初始化分类字典,那就使用默认分类字典

dev
wangxianzhang 3 years ago
parent
commit
18ef454c80
  1. 6
      epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/impl/CoverageServiceImpl.java

6
epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/dataaggre/service/impl/CoverageServiceImpl.java

@ -87,9 +87,15 @@ public class CoverageServiceImpl implements CoverageService {
if (CollectionUtils.isNotEmpty(categoryKeys)) { if (CollectionUtils.isNotEmpty(categoryKeys)) {
// 有分类keys,使用分类keys查询,使用coverageTypes分组 // 有分类keys,使用分类keys查询,使用coverageTypes分组
mapping = orgCoverageService.getMappingRelationByCategoryKey(categoryKeys, customerId); mapping = orgCoverageService.getMappingRelationByCategoryKey(categoryKeys, customerId);
if (mapping == null || mapping.size() == 0) {
mapping = orgCoverageService.getMappingRelationByCategoryKey(categoryKeys, "default");
}
} else { } else {
// 没有分类keys,使用coverageTypes直接查询 // 没有分类keys,使用coverageTypes直接查询
mapping = orgCoverageService.getMappingRelationByCoverageType(coverageTypes, customerId); mapping = orgCoverageService.getMappingRelationByCoverageType(coverageTypes, customerId);
if (mapping == null || mapping.size() == 0) {
mapping = orgCoverageService.getMappingRelationByCoverageType(categoryKeys, "default");
}
} }
// 2.循环coverageTypes,使用key到map中查询(为了顺序),得到categoryKeys列表之后,根据实际情况做相应的查询 // 2.循环coverageTypes,使用key到map中查询(为了顺序),得到categoryKeys列表之后,根据实际情况做相应的查询

Loading…
Cancel
Save