房源距离改成参数,默认3km
This commit is contained in:
+3
-1
@@ -927,7 +927,9 @@ public class HouseController {
|
||||
model.setStartTime(sixMonthsAgoInt);
|
||||
model.setEndTime(todayInt);
|
||||
// 默认3000M内
|
||||
model.setRadius(3000);
|
||||
if (model.getRadius() == null) {
|
||||
model.setRadius(3000);
|
||||
}
|
||||
if (StringUtils.isBlank(model.getLocation())) {
|
||||
mav.setModel(BasicModel.buildBadRequestModel("location(经纬度)不能为空"));
|
||||
return mav;
|
||||
|
||||
Reference in New Issue
Block a user