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