优先用户物业类型传参,然后采用面积进行推断

This commit is contained in:
sjshenjian
2024-11-11 09:55:06 +08:00
parent 284d1f1802
commit 7a5c929171
@@ -1614,6 +1614,11 @@ public class PropertyController {
Map<String, Object> map = (Map<String, Object>) json.get("result");
if ((Integer) map.get("precise") >= 0) {
String propertyType = (String) map.get("propertyType");
// 优先使用客户的物业类型,即使面积很大也不进行别墅推断 20241111
String userPropertyTypeParam = model.getPropertyType();
if (StringUtils.isNotBlank(userPropertyTypeParam) && ("0,2".contains(userPropertyTypeParam))) {
villaFlag = false;
}
if (villaFlag && StringUtils.isNotBlank(propertyType) && !propertyType.equals("±ðÊû")) {
district = districtService.findByNameAndAlias((String) map.get("city"), (String) map.get("district"), (String) map.get("name") + "±ðÊû", "district");
}