From fbe0709780a00d4b4fcfcf0132b67750fa9de318 Mon Sep 17 00:00:00 2001 From: majintao Date: Fri, 7 Feb 2025 15:48:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E6=BA=90=E8=B7=9D=E7=A6=BB=E6=94=B9?= =?UTF-8?q?=E6=88=90=E5=8F=82=E6=95=B0=EF=BC=8C=E9=BB=98=E8=AE=A43km?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fangjia/open/controllers/HouseController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/HouseController.java b/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/HouseController.java index 8870454dc..f8bfdcf10 100644 --- a/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/HouseController.java +++ b/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/HouseController.java @@ -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;