|
|
@@ -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); |
|
|
|
} |
|
|
|