城乡编码映射完善

This commit is contained in:
mjt
2024-05-10 13:48:47 +08:00
parent c42a5338c5
commit 74d3605a51
2 changed files with 8 additions and 4 deletions
@@ -386,7 +386,8 @@ public class AddrSvcController {
put("121", "镇中心区");
put("122", "镇乡结合区");
put("123", "特殊区域");
put("210", "村庄");
put("210", "乡中心区");
put("220", "村庄");
}
};
@@ -418,10 +419,12 @@ public class AddrSvcController {
Integer radius = model.getRadius();
params.put("radius", (radius != null && radius != 0) ? radius.toString() : null);
try {
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/villageIdentify", params, "UTF-8");
// json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/villageIdentify", params, "UTF-8");
json = request.getJsonContent("http://192.168.0.19:31080/FangJiaAddressService/villageIdentify", params, "UTF-8");
} catch (Exception e) {
try {
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/villageIdentify", params, "UTF-8");
// json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/villageIdentify", params, "UTF-8");
json = request.getJsonContent("http://192.168.0.19:31080/FangJiaAddressService/villageIdentify", params, "UTF-8");
} catch (Exception ex) {
ex.printStackTrace();
}
@@ -45,7 +45,8 @@ public class GdBankController {
put("121", "镇中心区");
put("122", "镇乡结合区");
put("123", "特殊区域");
put("210", "村庄");
put("210", "乡中心区");
put("220", "村庄");
}
};