|
@@ -86,6 +86,9 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
|
86
|
86
|
|
87
|
87
|
@Autowired
|
88
|
88
|
private TaShareContentService taShareContentService;
|
|
89
|
+
|
|
90
|
+ @Autowired
|
|
91
|
+ private TaBuildingMapper taBuildingMapper;
|
89
|
92
|
|
90
|
93
|
|
91
|
94
|
@Resource
|
|
@@ -232,10 +235,13 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
|
232
|
235
|
// 获取关联项目
|
233
|
236
|
List<TaPersonBuilding> buildingList = getPersonBuildings(user.getUserId().toString());
|
234
|
237
|
List<String> buildings = new ArrayList<>();
|
|
238
|
+ TaBuilding taBuilding = new TaBuilding();
|
235
|
239
|
if (null != buildingList && buildingList.size() > 0) {
|
236
|
240
|
for(TaPersonBuilding b: buildingList) {
|
237
|
241
|
buildings.add(b.getBuildingId());
|
238
|
242
|
}
|
|
243
|
+ //获取楼盘信息
|
|
244
|
+ taBuilding = taBuildingMapper.selectById(buildingList.get(0).getBuildingId());
|
239
|
245
|
}
|
240
|
246
|
|
241
|
247
|
Map<String, Object> result = new HashMap<>();
|
|
@@ -255,7 +261,8 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
|
255
|
261
|
result.put("liked", false);
|
256
|
262
|
result.put("unReadNum", 0);
|
257
|
263
|
result.put("projects", buildings);
|
258
|
|
- result.put("address", user.getAddress());
|
|
264
|
+ result.put("address", taBuilding.getAddress());
|
|
265
|
+ result.put("coordinate", taBuilding.getCoordinate());
|
259
|
266
|
result.put("personTags",person.getPersonTags());
|
260
|
267
|
result.put("posters",taPosterService.getPostersForTarget(user.getUserId().toString(),CommConstant.POSTER_CONTENT_TYPE_PERSON));
|
261
|
268
|
result.put("shareContent",taShareContentService.getPostersForTarget(user.getUserId().toString(),CommConstant.POSTER_CONTENT_TYPE_PERSON));
|