规范物业类型输出

This commit is contained in:
shenjian@fangjia.com
2023-02-17 15:29:26 +08:00
parent 795352405a
commit 470f2257d0
@@ -523,6 +523,13 @@ public class AddressController {
}
MatchDistrictResult matchResult = addressMatchProxyService.checkMatchDistrictCorrect(param);
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) {
// 判断是否为自然村
boolean matchedVillage = false;