/house/around接口

This commit is contained in:
majintao
2024-11-29 10:10:31 +08:00
parent fa9ee8b013
commit f58bebc6f2
5 changed files with 40 additions and 35 deletions
@@ -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;
}
}