商铺样本查询优化
This commit is contained in:
+25
-2
@@ -223,6 +223,9 @@ public class AiShopServiceImpl implements AiShopService {
|
||||
seawaterDto.setFloorInfo(seawater.getFloorInfo());
|
||||
seawaterDto.setAddress(seawater.getAddress());
|
||||
seawaterDto.setDistrictName(seawater.getDistrictName());
|
||||
seawaterDto.setTags(seawater.getTags());
|
||||
seawaterDto.setImageUrls(seawater.getImageUrls());
|
||||
seawaterDto.setLocation(seawater.getLocation());
|
||||
return seawaterDto;
|
||||
}
|
||||
|
||||
@@ -318,7 +321,17 @@ public class AiShopServiceImpl implements AiShopService {
|
||||
query.setLat(lat);
|
||||
query.setLng(lng);
|
||||
query.setCat("shop_rent");
|
||||
query.setRadius(1000);
|
||||
if (evaluation.getRadius() != null && evaluation.getRadius() > 0) {
|
||||
query.setRadius(evaluation.getRadius());
|
||||
} else {
|
||||
query.setRadius(1000);
|
||||
}
|
||||
if (StringUtils.isNotBlank(evaluation.getEstateType())) {
|
||||
query.setEstateType(evaluation.getEstateType());
|
||||
}
|
||||
if (StringUtils.isNotBlank(evaluation.getTags())) {
|
||||
query.setTags(Arrays.asList(evaluation.getTags().split(",")));
|
||||
}
|
||||
// 查询近一年样本
|
||||
query.setStartDate(Integer.parseInt(DateUtil.formatByPattern(DateUtil.addMonthToDate(new Date(), -12), "yyyyMMdd")));
|
||||
query.setEndDate(Integer.parseInt(DateUtil.formatByPattern(new Date(), "yyyyMMdd")));
|
||||
@@ -371,7 +384,17 @@ public class AiShopServiceImpl implements AiShopService {
|
||||
query.setLat(lat);
|
||||
query.setLng(lng);
|
||||
query.setCat("shop_sell");
|
||||
query.setRadius(1000);
|
||||
if (evaluation.getRadius() != null && evaluation.getRadius() > 0) {
|
||||
query.setRadius(evaluation.getRadius());
|
||||
} else {
|
||||
query.setRadius(1000);
|
||||
}
|
||||
if (StringUtils.isNotBlank(evaluation.getEstateType())) {
|
||||
query.setEstateType(evaluation.getEstateType());
|
||||
}
|
||||
if (StringUtils.isNotBlank(evaluation.getTags())) {
|
||||
query.setTags(Arrays.asList(evaluation.getTags().split(",")));
|
||||
}
|
||||
// 查询近一年样本
|
||||
query.setStartDate(Integer.parseInt(DateUtil.formatByPattern(DateUtil.addMonthToDate(new Date(), -12), "yyyyMMdd")));
|
||||
query.setEndDate(Integer.parseInt(DateUtil.formatByPattern(new Date(), "yyyyMMdd")));
|
||||
|
||||
Reference in New Issue
Block a user