From 3165f27f91f157e51f53e0158bf3c0bb9b306834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Thu, 19 Sep 2024 15:55:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fangjia/open/controllers/FshController.java | 8 ++++++-- .../com/fangjia/open/model/PropertyEvaluationModel.java | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/FshController.java b/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/FshController.java index f0c267e87..c8b8b64ad 100644 --- a/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/FshController.java +++ b/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/FshController.java @@ -1925,8 +1925,12 @@ public class FshController { evaluation.setFitmentCharge(model.getDecorationCost()); } evaluation.setGardenArea(model.getGardenArea()); - if (model.getHall() != null && 0 != model.getHall()) { - evaluation.setHall(model.getHall()); + try { + if (0 != model.getHall()) { + evaluation.setHall(model.getHall()); + } + } catch (Exception ex) { + } if (null != model.getFloor()) { evaluation.setFloor(model.getFloor()); diff --git a/projects/fangjia-open/src/main/java/com/fangjia/open/model/PropertyEvaluationModel.java b/projects/fangjia-open/src/main/java/com/fangjia/open/model/PropertyEvaluationModel.java index d6848c616..2abc1acf1 100644 --- a/projects/fangjia-open/src/main/java/com/fangjia/open/model/PropertyEvaluationModel.java +++ b/projects/fangjia-open/src/main/java/com/fangjia/open/model/PropertyEvaluationModel.java @@ -80,7 +80,7 @@ public class PropertyEvaluationModel extends FangjiaApiModel { /** * ÌüÊý */ - private Integer hall; + private int hall; /** * ÎÀÊý @@ -361,11 +361,11 @@ public class PropertyEvaluationModel extends FangjiaApiModel { this.room = room; } - public Integer getHall() { + public int getHall() { return hall; } - public void setHall(Integer hall) { + public void setHall(int hall) { this.hall = hall; }