无样本周边价格过滤
This commit is contained in:
+2
-2
@@ -1222,7 +1222,7 @@ public class PropertyController {
|
|||||||
}else if(district.getLng() != null && district.getLng() > 0){
|
}else if(district.getLng() != null && district.getLng() > 0){
|
||||||
double lng = DataUtil.roundDouble(district.getLng() / 10000000000.0,6);
|
double lng = DataUtil.roundDouble(district.getLng() / 10000000000.0,6);
|
||||||
double lat = DataUtil.roundDouble(district.getLat() / 10000000000.0, 6);
|
double lat = DataUtil.roundDouble(district.getLat() / 10000000000.0, 6);
|
||||||
List<District> districts = districtService.findNearestDistrict(district.getEstateType2(), lng, lat, 1000 * 3 , 4, null);
|
List<District> districts = districtService.findNearestDistrict(district.getEstateType2(), lng, lat, 1000 * 3 , 6, null);
|
||||||
if(districts.size() < 2){
|
if(districts.size() < 2){
|
||||||
evaluationService.remove(evaluation.getId());
|
evaluationService.remove(evaluation.getId());
|
||||||
mav.setModel(BasicModel.buildOKModel().setMsg("暂时不支持该小区的估价").markNoData());
|
mav.setModel(BasicModel.buildOKModel().setMsg("暂时不支持该小区的估价").markNoData());
|
||||||
@@ -1264,7 +1264,7 @@ public class PropertyController {
|
|||||||
if (districtAnalyData.getHalfYearMarkup() != null) {
|
if (districtAnalyData.getHalfYearMarkup() != null) {
|
||||||
districtDto.append("halfYearMarkup", DataUtil.roundDouble(districtAnalyData.getHalfYearMarkup() * 100, 2));
|
districtDto.append("halfYearMarkup", DataUtil.roundDouble(districtAnalyData.getHalfYearMarkup() * 100, 2));
|
||||||
}
|
}
|
||||||
if (districtAnalyData.getAvgPrice() != null) {
|
if (districtAnalyData.getAvgPrice() != null && minPrice <= districtAnalyData.getAvgPrice() && maxPrice >= districtAnalyData.getAvgPrice()) {
|
||||||
districtDto.append("avgPrice", districtAnalyData.getAvgPrice());
|
districtDto.append("avgPrice", districtAnalyData.getAvgPrice());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user