傅行帆 5 年 前
コミット
2c908314e1
共有1 個のファイルを変更した5 個の追加3 個の削除を含む
  1. 5
    3
      src/main/java/com/huiju/estateagents/service/impl/TaPreselectionRecordServiceImpl.java

+ 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