|
|
@ -33,6 +33,7 @@ import javax.annotation.Resource; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -109,8 +110,15 @@ public class HighMerchantStoreController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Map<String, SecRegion> regionMap = commonService.getParentInfoByRegionId(highMerchantStore.getRegionId()); |
|
|
|
Map<String, SecRegion> regionMap = commonService.getParentInfoByRegionId(highMerchantStore.getRegionId()); |
|
|
|
highMerchantStore.setRegionId(regionMap.get("city").getRegionId()); |
|
|
|
// 如果是重庆市的区县,使用重庆市的区域代码
|
|
|
|
highMerchantStore.setRegionName(regionMap.get("city").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()); |
|
|
|
|
|
|
|
} |
|
|
|
highMerchantStore.setCreateTime(new Date()); |
|
|
|
highMerchantStore.setCreateTime(new Date()); |
|
|
|
highMerchantStore.setUpdateTime(new Date()); |
|
|
|
highMerchantStore.setUpdateTime(new Date()); |
|
|
|
highMerchantStore.setStatus(1); // 状态:0:删除,1:正常
|
|
|
|
highMerchantStore.setStatus(1); // 状态:0:删除,1:正常
|
|
|
@ -182,8 +190,15 @@ public class HighMerchantStoreController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Map<String, SecRegion> regionMap = commonService.getParentInfoByRegionId(highMerchantStore.getRegionId()); |
|
|
|
Map<String, SecRegion> regionMap = commonService.getParentInfoByRegionId(highMerchantStore.getRegionId()); |
|
|
|
highMerchantStore.setRegionId(regionMap.get("city").getRegionId()); |
|
|
|
// 如果是重庆市的区县,使用重庆市的区域代码
|
|
|
|
highMerchantStore.setRegionName(regionMap.get("city").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()); |
|
|
|
|
|
|
|
} |
|
|
|
highMerchantStore.setUpdateTime(new Date()); |
|
|
|
highMerchantStore.setUpdateTime(new Date()); |
|
|
|
highMerchantStore.setOperatorId(userInfoModel.getSecUser().getId()); |
|
|
|
highMerchantStore.setOperatorId(userInfoModel.getSecUser().getId()); |
|
|
|
highMerchantStore.setOperatorName(userInfoModel.getSecUser().getUserName()); |
|
|
|
highMerchantStore.setOperatorName(userInfoModel.getSecUser().getUserName()); |
|
|
|