写字楼地址估值结果加经纬度
This commit is contained in:
@@ -283,6 +283,7 @@ public class OfficeController {
|
|||||||
districtPriceMap.put("name", evaluation.getName());
|
districtPriceMap.put("name", evaluation.getName());
|
||||||
districtPriceMap.put("samples", evaluation.getSeawater());
|
districtPriceMap.put("samples", evaluation.getSeawater());
|
||||||
districtPriceMap.put("refOffices", evaluation.getOffice());
|
districtPriceMap.put("refOffices", evaluation.getOffice());
|
||||||
|
districtPriceMap.put("location", evaluation.getLocation());
|
||||||
|
|
||||||
mav.setModel(BasicModel.buildOKModel().setResult(districtPriceMap));
|
mav.setModel(BasicModel.buildOKModel().setResult(districtPriceMap));
|
||||||
try {
|
try {
|
||||||
|
|||||||
+1
@@ -366,6 +366,7 @@ public class OfficeServiceImpl implements OfficeService {
|
|||||||
private OfficeEvaluationDto rentEvaluateByLocation(Evaluation evaluation) {
|
private OfficeEvaluationDto rentEvaluateByLocation(Evaluation evaluation) {
|
||||||
OfficeEvaluationDto officeEvaluationDto = new OfficeEvaluationDto();
|
OfficeEvaluationDto officeEvaluationDto = new OfficeEvaluationDto();
|
||||||
if (StringUtils.isNotBlank(evaluation.getLocation())) {
|
if (StringUtils.isNotBlank(evaluation.getLocation())) {
|
||||||
|
officeEvaluationDto.setLocation(evaluation.getLocation());
|
||||||
Double lng = Double.valueOf(evaluation.getLocation().split(",")[0]);
|
Double lng = Double.valueOf(evaluation.getLocation().split(",")[0]);
|
||||||
Double lat = Double.valueOf(evaluation.getLocation().split(",")[1]);
|
Double lat = Double.valueOf(evaluation.getLocation().split(",")[1]);
|
||||||
// 查询附近5个写字楼基准价
|
// 查询附近5个写字楼基准价
|
||||||
|
|||||||
+3
@@ -15,11 +15,14 @@ public class OfficeEvaluationDto extends Evaluation {
|
|||||||
private Double unitPrice;
|
private Double unitPrice;
|
||||||
|
|
||||||
private List<Seawater> seawater;
|
private List<Seawater> seawater;
|
||||||
|
|
||||||
private List<OfficeRentStat> office;
|
private List<OfficeRentStat> office;
|
||||||
|
|
||||||
private String district;
|
private String district;
|
||||||
|
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
|
||||||
public Double getUnitPrice() {
|
public Double getUnitPrice() {
|
||||||
return unitPrice;
|
return unitPrice;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user