写字楼地址估值结果加经纬度

This commit is contained in:
majintao
2025-03-10 13:51:48 +08:00
parent 24d5089c50
commit 7a80757dd8
3 changed files with 5 additions and 0 deletions
@@ -283,6 +283,7 @@ public class OfficeController {
districtPriceMap.put("name", evaluation.getName());
districtPriceMap.put("samples", evaluation.getSeawater());
districtPriceMap.put("refOffices", evaluation.getOffice());
districtPriceMap.put("location", evaluation.getLocation());
mav.setModel(BasicModel.buildOKModel().setResult(districtPriceMap));
try {
@@ -366,6 +366,7 @@ public class OfficeServiceImpl implements OfficeService {
private OfficeEvaluationDto rentEvaluateByLocation(Evaluation evaluation) {
OfficeEvaluationDto officeEvaluationDto = new OfficeEvaluationDto();
if (StringUtils.isNotBlank(evaluation.getLocation())) {
officeEvaluationDto.setLocation(evaluation.getLocation());
Double lng = Double.valueOf(evaluation.getLocation().split(",")[0]);
Double lat = Double.valueOf(evaluation.getLocation().split(",")[1]);
// 查询附近5个写字楼基准价
@@ -15,11 +15,14 @@ public class OfficeEvaluationDto extends Evaluation {
private Double unitPrice;
private List<Seawater> seawater;
private List<OfficeRentStat> office;
private String district;
private String name;
public Double getUnitPrice() {
return unitPrice;
}