/house/around接口
This commit is contained in:
+7
-1
@@ -77,6 +77,8 @@ public class HouseController {
|
||||
|
||||
private AddressParser addressParser;
|
||||
private HouseService houseService;
|
||||
|
||||
private RentHouseService rentHouseService;
|
||||
private MenuService menuService;
|
||||
private NoHouseDistrictService noHouseDistrictService;
|
||||
private ApiUserService apiUserService;
|
||||
@@ -1010,7 +1012,7 @@ public class HouseController {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
List<House> nearestHasHouseByLocation = houseService.findNearestHasHouseByLocation(model.getCity(), lat, lng, cat, model.getRadius(), 5);
|
||||
List<House> nearestHasHouseByLocation = rentHouseService.findNearestHasHouseByLocation(model.getCity(), lat, lng, cat, model.getRadius(), 5);
|
||||
if (nearestHasHouseByLocation != null && !nearestHasHouseByLocation.isEmpty()) {
|
||||
for (House house : nearestHasHouseByLocation) {
|
||||
Seawater seawater = new Seawater();
|
||||
@@ -1869,4 +1871,8 @@ public class HouseController {
|
||||
public void setSeaweedService(SeaweedService seaweedService) {
|
||||
this.seaweedService = seaweedService;
|
||||
}
|
||||
|
||||
public void setRentHouseService(RentHouseService rentHouseService) {
|
||||
this.rentHouseService = rentHouseService;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user