Merge branch 'open_gj' into 'master'

规范物业类型输出

See merge request !537
This commit is contained in:
2023-02-17 15:39:01 +08:00
@@ -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;