dev-discount
袁野 4 years ago
commit df69a896f7
  1. 12
      hai-bweb/src/main/java/com/bweb/controller/HighMerchantStoreController.java

@ -109,14 +109,8 @@ public class HighMerchantStoreController {
}
Map<String, SecRegion> regionMap = commonService.getParentInfoByRegionId(highMerchantStore.getRegionId());
// 如果是重庆市的区县,使用重庆市的区域代码
if (regionMap.get("city").getRegionId().intValue() == 500000) {
highMerchantStore.setRegionId(regionMap.get("city").getRegionId());
highMerchantStore.setRegionName(regionMap.get("city").getRegionName());
} else {
highMerchantStore.setRegionName(commonService.getRegionsById(highMerchantStore.getRegionId()).getRegionName());
}
highMerchantStore.setCreateTime(new Date());
highMerchantStore.setUpdateTime(new Date());
highMerchantStore.setStatus(1); // 状态:0:删除,1:正常
@ -188,14 +182,8 @@ public class HighMerchantStoreController {
}
Map<String, SecRegion> regionMap = commonService.getParentInfoByRegionId(highMerchantStore.getRegionId());
// 如果是重庆市的区县,使用重庆市的区域代码
if (regionMap.get("city").getRegionId().intValue() == 500000) {
highMerchantStore.setRegionId(regionMap.get("city").getRegionId());
highMerchantStore.setRegionName(regionMap.get("city").getRegionName());
} else {
highMerchantStore.setRegionName(commonService.getRegionsById(highMerchantStore.getRegionId()).getRegionName());
}
highMerchantStore.setUpdateTime(new Date());
highMerchantStore.setOperatorId(userInfoModel.getSecUser().getId());
highMerchantStore.setOperatorName(userInfoModel.getSecUser().getUserName());

Loading…
Cancel
Save