Browse Source

区域debug

master
PoffyZhang 1 year ago
parent
commit
bf53e2ebed
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/common/helper/impl/RegionsCacheHelperImpl.java

+ 3
- 0
pmapi/src/main/java/com/ningdatech/pmapi/common/helper/impl/RegionsCacheHelperImpl.java View File

@@ -54,6 +54,9 @@ public class RegionsCacheHelperImpl extends AbstractRegionCacheHelper implements
@Override
public Collection<String> listChildRegionCodeList(String regionCode, int regionLevel) {
RegionDTO currRegion = getByCodeAndLevel(regionCode, regionLevel);
if(Objects.isNull(currRegion)){
return Collections.emptyList();
}
if (currRegion.getParentCode().equals(regionCode)) {
return Collections.singletonList(regionCode);
}


Loading…
Cancel
Save