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