|
|
|
@ -97,13 +97,19 @@ public class HighMerchantStoreController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Map<String, SecRegion> regionMap = commonService.getParentInfoByRegionId(highMerchantStore.getRegionId()); |
|
|
|
|
// 如果是重庆市的区县,使用重庆市的区域代码
|
|
|
|
|
if (regionMap.get("region").getRegionId().intValue() == 500100) { |
|
|
|
|
|
|
|
|
|
if (highMerchantStore.getType() != null && highMerchantStore.getType().equals(1)) { |
|
|
|
|
highMerchantStore.setRegionId(regionMap.get("region").getParentId()); |
|
|
|
|
highMerchantStore.setRegionName(regionMap.get("region").getRegionName()); |
|
|
|
|
highMerchantStore.setRegionName(commonService.getRegionName(regionMap.get("region").getParentId())); |
|
|
|
|
} else { |
|
|
|
|
highMerchantStore.setRegionId(regionMap.get("region").getRegionId()); |
|
|
|
|
highMerchantStore.setRegionName(regionMap.get("region").getRegionName()); |
|
|
|
|
// 如果是重庆市的区县,使用重庆市的区域代码
|
|
|
|
|
if (regionMap.get("region").getRegionId().intValue() == 500100) { |
|
|
|
|
highMerchantStore.setRegionId(regionMap.get("region").getParentId()); |
|
|
|
|
highMerchantStore.setRegionName(regionMap.get("region").getRegionName()); |
|
|
|
|
} else { |
|
|
|
|
highMerchantStore.setRegionId(regionMap.get("region").getRegionId()); |
|
|
|
|
highMerchantStore.setRegionName(regionMap.get("region").getRegionName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (highMerchantStore.getBrandId() != null) { |
|
|
|
|