修复物业类型BUG
This commit is contained in:
+7
-6
@@ -329,12 +329,13 @@ public class ComprehensiveQueryController {
|
||||
PropertyEvaluationModel propertyEvaluationModel = createPropertyEvaluationModelFromHouseInfomationModel(model);
|
||||
boolean villaFlag = DataUtil.isVilla(propertyEvaluationModel.getSize(), propertyEvaluationModel.getName(), propertyEvaluationModel.getHeight(), propertyEvaluationModel.getRoom());
|
||||
String propertyType = district.getEstateType2();
|
||||
if (villaFlag && StringUtils.isNotBlank(propertyType) && !propertyType.equals("别墅")) {
|
||||
District bieShuDistrict = districtService.findByNameAndAlias(district.getCity(), district.getRegion(), district.getName() + "别墅", "district");
|
||||
if (bieShuDistrict != null) {
|
||||
district = bieShuDistrict;
|
||||
}
|
||||
}
|
||||
// 已添加物业类型,先注释
|
||||
// if (villaFlag && StringUtils.isNotBlank(propertyType) && !propertyType.equals("别墅")) {
|
||||
// District bieShuDistrict = districtService.findByNameAndAlias(district.getCity(), district.getRegion(), district.getName() + "别墅", "district");
|
||||
// if (bieShuDistrict != null) {
|
||||
// district = bieShuDistrict;
|
||||
// }
|
||||
// }
|
||||
//添加城市
|
||||
propertyEvaluationModel.setCity(district.getCity());
|
||||
propertyEvaluationModel.setDistrict(district.getRegion());
|
||||
|
||||
Reference in New Issue
Block a user