修复物业类型传参
This commit is contained in:
+4
-6
@@ -719,12 +719,12 @@ public class AddrSvcController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 涉农识别-新规则-上海银行
|
* 对公涉农识别-新规则-上海银行
|
||||||
*
|
*
|
||||||
* @param model
|
* @param model
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Object boscVillageIdentifyAction(AddressModel model) {
|
public Object boscEnterpriseVillageIdentifyAction(AddressModel model) {
|
||||||
RestfulModelAndView mav = new RestfulModelAndView();
|
RestfulModelAndView mav = new RestfulModelAndView();
|
||||||
if (StringUtils.isBlank(model.getAddress())) {
|
if (StringUtils.isBlank(model.getAddress())) {
|
||||||
mav.setModel(BasicModel.buildBadRequestModel("地址不能为空"));
|
mav.setModel(BasicModel.buildBadRequestModel("地址不能为空"));
|
||||||
@@ -737,13 +737,11 @@ public class AddrSvcController {
|
|||||||
params.put("city", StringUtils.isNotBlank(model.getCity()) ? model.getCity() : null);
|
params.put("city", StringUtils.isNotBlank(model.getCity()) ? model.getCity() : null);
|
||||||
String address = model.getAddress();
|
String address = model.getAddress();
|
||||||
params.put("address", address);
|
params.put("address", address);
|
||||||
String type = StringUtils.isNotBlank(model.getType()) ? model.getType() : null;
|
|
||||||
params.put("type", type);
|
|
||||||
try {
|
try {
|
||||||
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/shzxVillageIdentify", params, "UTF-8");
|
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/boscEnterpriseVillageIdentify", params, "UTF-8");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
try {
|
try {
|
||||||
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/shzxVillageIdentify", params, "UTF-8");
|
json = request.getJsonContent("http://192.168.0.100:32080/FangJiaAddressService/boscEnterpriseVillageIdentify", params, "UTF-8");
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user