查deal_sample表,加city

This commit is contained in:
2026-01-30 14:39:41 +08:00
parent e346591035
commit 4ccb5e9fff
6 changed files with 9 additions and 9 deletions
@@ -144,7 +144,7 @@ public class CommercialController {
JSONObject locObj = json.getJSONObject("location");
Double lng = locObj.getDouble("lon");
Double lat = locObj.getDouble("lat");
List<DealSample> houseSelf = dealSampleService.querySampleByLocation(lng, lat, model.getMinPrice(), model.getMaxPrice(), "shop_sell", 30);
List<DealSample> houseSelf = dealSampleService.querySampleByLocation(json.getString("city"), lng, lat, model.getMinPrice(), model.getMaxPrice(), "shop_sell", 30);
List<BusinessCaseDto> dtos = createSample(houseSelf, "sell", ratio, lng, lat, unitPrice.doubleValue());
if(dtos!=null && dtos.size()>5){
@@ -419,7 +419,7 @@ public class CommercialController {
JSONObject locObj = json.getJSONObject("location");
Double lng = locObj.getDouble("lon");
Double lat = locObj.getDouble("lat");
List<DealSample> houseSelf = dealSampleService.querySampleByLocation(lng, lat, DataUtil.getDoubleRound(2, minPrice), DataUtil.getDoubleRound(2, maxPrice), "shop_rent", 30);
List<DealSample> houseSelf = dealSampleService.querySampleByLocation(json.getString("city"), lng, lat, DataUtil.getDoubleRound(2, minPrice), DataUtil.getDoubleRound(2, maxPrice), "shop_rent", 30);
List<BusinessCaseDto> dtos = createSample(houseSelf, "rent", ratio, lng, lat, unitPrice);
@@ -904,7 +904,7 @@ public class OfficeController {
Double lng = district.getLng()/10000000000.0;
Double lat = district.getLat()/10000000000.0;
List<DealSample> houseSelf = dealSampleService.querySampleByLocation(lng, lat, DataUtil.getDoubleRound(2, minPrice), DataUtil.getDoubleRound(2, maxPrice), "office_rent", pager.getPageSize());
List<DealSample> houseSelf = dealSampleService.querySampleByLocation(district.getCity(), lng, lat, DataUtil.getDoubleRound(2, minPrice), DataUtil.getDoubleRound(2, maxPrice), "office_rent", pager.getPageSize());
List<BusinessCaseDto> createBusiness = createSample(houseSelf, "office_rent", district, ratio, lng, lat, unitPrice);
if(createBusiness!=null && createBusiness.size()>5){
@@ -642,7 +642,7 @@ public class OfficeSellController {
Double lng = district.getLng()/10000000000.0;
Double lat = district.getLat()/10000000000.0;
List<DealSample> houseSelf = dealSampleService.querySampleByLocation(lng, lat, model.getMinPrice(), model.getMaxPrice(), "office_sell", pager.getPageSize());
List<DealSample> houseSelf = dealSampleService.querySampleByLocation(district.getCity(), lng, lat, model.getMinPrice(), model.getMaxPrice(), "office_sell", pager.getPageSize());
List<BusinessCaseDto> createBusiness = createSample(houseSelf, "office_sell", district, ratio, lng, lat, unitPrice);
if(createBusiness!=null && createBusiness.size()>5){
@@ -6720,7 +6720,7 @@ public class PropertyController {
}
if(caseDtos.size() < pager.getPageSize()){
List<DealSample> houseSelf = dealSampleService.querySampleByLocation(district.getLng()/10000000000.0, district.getLat()/10000000000.0, minPrice, maxPrice, "rent", pager.getPageSize());
List<DealSample> houseSelf = dealSampleService.querySampleByLocation(district.getCity(),district.getLng()/10000000000.0, district.getLat()/10000000000.0, minPrice, maxPrice, "rent", pager.getPageSize());
if(houseSelf!=null && houseSelf.size()>0){
caseDtos = createHouseSample(caseDtos, houseSelf, model.getShowSource(), ratio, district.getLng()/10000000000.0, district.getLat()/10000000000.0, avgPrice);
}
@@ -6842,11 +6842,10 @@ public class PropertyController {
}
if(caseDtos.size() < pager.getPageSize()){
List<DealSample> houseSelf = dealSampleService.querySampleByLocation(district.getLng()/10000000000.0, district.getLat()/10000000000.0, minPrice, maxPrice, "sell", pager.getPageSize());
List<DealSample> houseSelf = dealSampleService.querySampleByLocation(district.getCity(), district.getLng()/10000000000.0, district.getLat()/10000000000.0, minPrice, maxPrice, "sell", pager.getPageSize());
if(houseSelf!=null && houseSelf.size()>0){
caseDtos = createHouseSample(caseDtos, houseSelf, model.getShowSource(), ratio, district.getLng()/10000000000.0, district.getLat()/10000000000.0, avgPrice);
}
}
}