修复评估空指针问题

This commit is contained in:
沈健
2024-09-19 10:09:30 +08:00
parent 2e1b7418ff
commit 04b9ac375a
2 changed files with 4 additions and 4 deletions
@@ -1925,7 +1925,7 @@ public class FshController {
evaluation.setFitmentCharge(model.getDecorationCost()); evaluation.setFitmentCharge(model.getDecorationCost());
} }
evaluation.setGardenArea(model.getGardenArea()); evaluation.setGardenArea(model.getGardenArea());
if (0 != model.getHall()) { if (model.getHall() != null && 0 != model.getHall()) {
evaluation.setHall(model.getHall()); evaluation.setHall(model.getHall());
} }
if (null != model.getFloor()) { if (null != model.getFloor()) {
@@ -80,7 +80,7 @@ public class PropertyEvaluationModel extends FangjiaApiModel {
/** /**
* 厅数 * 厅数
*/ */
private int hall; private Integer hall;
/** /**
* 卫数 * 卫数
@@ -361,11 +361,11 @@ public class PropertyEvaluationModel extends FangjiaApiModel {
this.room = room; this.room = room;
} }
public int getHall() { public Integer getHall() {
return hall; return hall;
} }
public void setHall(int hall) { public void setHall(Integer hall) {
this.hall = hall; this.hall = hall;
} }