|
@@ -16,6 +16,7 @@ import com.huiju.estateagents.mapper.TaHousingResourcesMapper;
|
16
|
16
|
import com.huiju.estateagents.mapper.TaPreselectionRecordMapper;
|
17
|
17
|
import com.huiju.estateagents.po.TaHousingResourcesPO;
|
18
|
18
|
import com.huiju.estateagents.po.TaPreselectionRecordPO;
|
|
19
|
+import com.huiju.estateagents.service.ITaBuildingApartmentService;
|
19
|
20
|
import com.huiju.estateagents.service.ITaHousingResourcesService;
|
20
|
21
|
import com.huiju.estateagents.service.ITaPreselectionRecordService;
|
21
|
22
|
import org.apache.commons.collections.CollectionUtils;
|
|
@@ -66,6 +67,9 @@ public class TaPreselectionRecordServiceImpl extends ServiceImpl<TaPreselectionR
|
66
|
67
|
@Autowired
|
67
|
68
|
private ITaHousingResourcesService taHousingResourcesService;
|
68
|
69
|
|
|
70
|
+ @Autowired
|
|
71
|
+ public ITaBuildingApartmentService taBuildingApartmentService;
|
|
72
|
+
|
69
|
73
|
|
70
|
74
|
@Override
|
71
|
75
|
public IPage<TaPreselectionRecordPO> listPreselectionRecord(Integer pageNum, Integer pageSize, Integer orgId, String personId, String buildingId,
|
|
@@ -107,7 +111,13 @@ public class TaPreselectionRecordServiceImpl extends ServiceImpl<TaPreselectionR
|
107
|
111
|
housingQueryWrapper.eq("org_id", record.getOrgId());
|
108
|
112
|
housingQueryWrapper.eq("house_id", record.getHouseId());
|
109
|
113
|
housingQueryWrapper.ne("status", -1);
|
110
|
|
- record.setHousingInfo(taHousingResourcesService.getOne(housingQueryWrapper));
|
|
114
|
+ TaHousingResources housingResources = taHousingResourcesService.getOne(housingQueryWrapper);
|
|
115
|
+ //户型图name
|
|
116
|
+ TaBuildingApartment buildingApartment = taBuildingApartmentService.getById(housingResources.getApartmentId());
|
|
117
|
+ housingResources.setApartmentName(buildingApartment.getApartmentName());
|
|
118
|
+ housingResources.setBuildingArea(buildingApartment.getBuildingArea());
|
|
119
|
+ housingResources.setInsideArea(buildingApartment.getInsideArea());
|
|
120
|
+ record.setHousingInfo(housingResources);
|
111
|
121
|
});
|
112
|
122
|
|
113
|
123
|
iPage.setRecords(resultList);
|