| | |
| | | if (tmsRegion2 != null){ |
| | | hasMap.put("cityCode",tmsRegion2.getRegionCode()); |
| | | |
| | | if (!StringUtils.isNotEmpty(addressVo.getDistrict())){ |
| | | // 添加特殊处理 |
| | | if ("中山市".equals(addressVo.getCity())){ |
| | | addressVo.setDistrict("中山市"); |
| | | }else if ("东莞市".equals(addressVo.getCity())){ |
| | | addressVo.setDistrict("东莞市"); |
| | | } |
| | | } |
| | | if (StringUtils.isNotEmpty(addressVo.getDistrict())){ |
| | | TmsRegion tmsRegion3= tmsRegionService.getBaseMapper().selectOne(new LambdaUpdateWrapper<>(TmsRegion.class) |
| | | .eq(TmsRegion::getRegionName, addressVo.getDistrict()) |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | } |