|
@@ -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
|
|