|
@@ -64,6 +64,9 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
64
|
64
|
@Autowired
|
65
|
65
|
private TaCustomerFollowUpRecordMapper customerFollowUpRecordMapper;
|
66
|
66
|
|
|
67
|
+ @Autowired
|
|
68
|
+ private TaPersonBuildingMapper taPersonBuildingMapper;
|
|
69
|
+
|
67
|
70
|
@Override
|
68
|
71
|
public ResponseBean getMyCustList(String openid, String keywords, int pageNumber, int pageSize) {
|
69
|
72
|
List<TaPerson> taPersons = getPersonsByOpenId(openid);
|
|
@@ -297,6 +300,15 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
297
|
300
|
taRecommendCustomer.setSex(null == taPerson.getGender() ? null : ("1".equals(taPerson.getGender()) ? 1 : 2));
|
298
|
301
|
// taRecommendCustomer.setDescribe(params.getString("describe"));
|
299
|
302
|
taRecommendCustomer.setRealtyConsultant(params.getString("realtyConsultant"));
|
|
303
|
+ //如果没有传building_id的情况构造building_id
|
|
304
|
+ if (StringUtils.isEmpty(params.getString("buildingId")) && !StringUtils.isEmpty(params.getString("realtyConsultant"))){
|
|
305
|
+ QueryWrapper<TaPersonBuilding> taPersonBuildingQueryWrapper = new QueryWrapper<>();
|
|
306
|
+ taPersonBuildingQueryWrapper.eq("person_id",params.getString("realtyConsultant")).or().eq("user_id",params.getString("realtyConsultant"));
|
|
307
|
+ List<TaPersonBuilding> taPersonBuildingList = taPersonBuildingMapper.selectList(taPersonBuildingQueryWrapper);
|
|
308
|
+ if (taPersonBuildingList.size() > 0){
|
|
309
|
+ params.put("buildingId",taPersonBuildingList.get(0).getBuildingId());
|
|
310
|
+ }
|
|
311
|
+ }
|
300
|
312
|
taRecommendCustomer.setBuildingId(params.getString("buildingId"));
|
301
|
313
|
TaBuilding building = taBuildingMapper.selectById(params.getString("buildingId"));
|
302
|
314
|
taRecommendCustomer.setIntention(building.getBuildingName());
|