傅行帆 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