获取行政区划代码

This commit is contained in:
majintao
2024-10-11 17:04:18 +08:00
parent 61ce1e3fa4
commit 37ba1f289e
@@ -1107,13 +1107,13 @@ public class AddrSvcController {
if (result.containsKey("province")) { if (result.containsKey("province")) {
map.put("province", result.getString("province")); map.put("province", result.getString("province"));
} }
if (result.containsKey("provinceCode")) { if (result.containsKey("tjjProvinceCode")) {
map.put("provinceCode", result.getString("tjjProvinceCode")); map.put("provinceCode", result.getString("tjjProvinceCode"));
} }
if (result.containsKey("city")) { if (result.containsKey("city")) {
map.put("city", result.getString("city")); map.put("city", result.getString("city"));
} }
if (result.containsKey("cityCode")) { if (result.containsKey("tjjCityCode")) {
map.put("cityCode", result.getString("tjjCityCode")); map.put("cityCode", result.getString("tjjCityCode"));
} }
list.add(map); list.add(map);
@@ -1165,8 +1165,8 @@ public class AddrSvcController {
if (result.containsKey("province")) { if (result.containsKey("province")) {
map.put("province", result.getString("province")); map.put("province", result.getString("province"));
} }
if (result.containsKey("provinceCode")) { if (result.containsKey("tjjProvinceCode")) {
map.put("provinceCode", result.getString("mzbProvinceCode")); map.put("provinceCode", result.getString("tjjProvinceCode"));
} }
list.add(map); list.add(map);
} }
@@ -1220,19 +1220,19 @@ public class AddrSvcController {
if (result.containsKey("province")) { if (result.containsKey("province")) {
map.put("province", result.getString("province")); map.put("province", result.getString("province"));
} }
if (result.containsKey("provinceCode")) { if (result.containsKey("tjjProvinceCode")) {
map.put("provinceCode", result.getString("tjjProvinceCode")); map.put("provinceCode", result.getString("tjjProvinceCode"));
} }
if (result.containsKey("city")) { if (result.containsKey("city")) {
map.put("city", result.getString("city")); map.put("city", result.getString("city"));
} }
if (result.containsKey("cityCode")) { if (result.containsKey("tjjCityCode")) {
map.put("cityCode", result.getString("tjjCityCode")); map.put("cityCode", result.getString("tjjCityCode"));
} }
if (result.containsKey("district")) { if (result.containsKey("district")) {
map.put("district", result.getString("district")); map.put("district", result.getString("district"));
} }
if (result.containsKey("districtCode")) { if (result.containsKey("tjjDistrictCode")) {
map.put("districtCode", result.getString("tjjDistrictCode")); map.put("districtCode", result.getString("tjjDistrictCode"));
} }
list.add(map); list.add(map);
@@ -1282,25 +1282,25 @@ public class AddrSvcController {
if (result.containsKey("province")) { if (result.containsKey("province")) {
map.put("province", result.getString("province")); map.put("province", result.getString("province"));
} }
if (result.containsKey("provinceCode")) { if (result.containsKey("tjjProvinceCode")) {
map.put("provinceCode", result.getString("tjjProvinceCode")); map.put("provinceCode", result.getString("tjjProvinceCode"));
} }
if (result.containsKey("city")) { if (result.containsKey("city")) {
map.put("city", result.getString("city")); map.put("city", result.getString("city"));
} }
if (result.containsKey("cityCode")) { if (result.containsKey("tjjCityCode")) {
map.put("cityCode", result.getString("tjjCityCode")); map.put("cityCode", result.getString("tjjCityCode"));
} }
if (result.containsKey("district")) { if (result.containsKey("district")) {
map.put("district", result.getString("district")); map.put("district", result.getString("district"));
} }
if (result.containsKey("districtCode")) { if (result.containsKey("tjjDistrictCode")) {
map.put("districtCode", result.getString("tjjDistrictCode")); map.put("districtCode", result.getString("tjjDistrictCode"));
} }
if (result.containsKey("street")) { if (result.containsKey("street")) {
map.put("street", result.getString("street")); map.put("street", result.getString("street"));
} }
if (result.containsKey("streetCode")) { if (result.containsKey("tjjStreetCode")) {
map.put("streetCode", result.getString("tjjStreetCode")); map.put("streetCode", result.getString("tjjStreetCode"));
} }
list.add(map); list.add(map);