| | |
| | | } |
| | | List<AppRegisterRegionPickerOptionVO> currentDistrictOptions = new ArrayList<AppRegisterRegionPickerOptionVO>(districts.size()); |
| | | for (SysRegion district : districts) { |
| | | if (shouldHideInAppPicker(district)) { |
| | | continue; |
| | | } |
| | | currentDistrictOptions.add(toPickerOption(district, 3)); |
| | | } |
| | | currentAreaOptions.add(currentDistrictOptions); |
| | |
| | | } |
| | | |
| | | /** |
| | | * APP 地区选择器不展示行政区划占位节点。 |
| | | */ |
| | | private boolean shouldHideInAppPicker(SysRegion region) { |
| | | return region.getName() != null && region.getName().contains("市辖区"); |
| | | } |
| | | |
| | | /** |
| | | * 将海诊通诊所地区编码或名称归一化为本地三级行政区划。 |
| | | */ |
| | | public RegionSelection resolveRegionSelection(String provinceCode, |