规范物业类型输出
This commit is contained in:
+7
@@ -523,6 +523,13 @@ public class AddressController {
|
|||||||
}
|
}
|
||||||
MatchDistrictResult matchResult = addressMatchProxyService.checkMatchDistrictCorrect(param);
|
MatchDistrictResult matchResult = addressMatchProxyService.checkMatchDistrictCorrect(param);
|
||||||
jsonResult.put("matchResult", matchResult);
|
jsonResult.put("matchResult", matchResult);
|
||||||
|
if (jsonResult.containsKey("category")) {
|
||||||
|
if ("office".equals(jsonResult.getString("category"))) {
|
||||||
|
jsonResult.put("propertyType", "写字楼");
|
||||||
|
} else if ("shop".equals(jsonResult.getString("category"))) {
|
||||||
|
jsonResult.put("propertyType", "商铺");
|
||||||
|
}
|
||||||
|
}
|
||||||
} else if (jsonResult != null) {
|
} else if (jsonResult != null) {
|
||||||
// 判断是否为自然村
|
// 判断是否为自然村
|
||||||
boolean matchedVillage = false;
|
boolean matchedVillage = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user