傅行帆 5 年前
父节点
当前提交
2c908314e1

+ 5
- 3
src/main/java/com/huiju/estateagents/service/impl/TaPreselectionRecordServiceImpl.java 查看文件

@@ -114,9 +114,11 @@ public class TaPreselectionRecordServiceImpl extends ServiceImpl<TaPreselectionR
114 114
             TaHousingResources housingResources = taHousingResourcesService.getOne(housingQueryWrapper);
115 115
             //户型图name
116 116
             TaBuildingApartment buildingApartment = taBuildingApartmentService.getById(housingResources.getApartmentId());
117
-            housingResources.setApartmentName(buildingApartment.getApartmentName());
118
-            housingResources.setBuildingArea(buildingApartment.getBuildingArea());
119
-            housingResources.setInsideArea(buildingApartment.getInsideArea());
117
+            if (null != buildingApartment){
118
+                housingResources.setApartmentName(buildingApartment.getApartmentName());
119
+                housingResources.setBuildingArea(buildingApartment.getBuildingArea());
120
+                housingResources.setInsideArea(buildingApartment.getInsideArea());
121
+            }
120 122
             record.setHousingInfo(housingResources);
121 123
         });
122 124