/house/around接口
This commit is contained in:
+7
-1
@@ -1021,7 +1021,13 @@ public class HouseController {
|
||||
seawater.setAddress(house.getAddress());
|
||||
seawater.setName(house.getDistrictName());
|
||||
seawater.setSize(house.getArea());
|
||||
seawater.setUnitPrice(house.getAvgPrice());
|
||||
if (house.getAvgPrice() != null) {
|
||||
seawater.setUnitPrice(house.getAvgPrice());
|
||||
}else {
|
||||
if (house.getTotalPrice() != null &&house.getTotalPrice()>0 && house.getArea()!=null && house.getArea()>0){
|
||||
seawater.setUnitPrice((int) (house.getTotalPrice() / house.getArea()));
|
||||
}
|
||||
}
|
||||
seawater.setTotalPrice(house.getTotalPrice());
|
||||
seawater.setDirection(house.getDirection());
|
||||
seawater.setFloor(house.getFloor());
|
||||
|
||||
Reference in New Issue
Block a user