|
|
|
|
455
|
}
|
455
|
}
|
456
|
if(!StringUtils.isEmpty(taRecommendCustomer.getRealtyConsultant())){
|
456
|
if(!StringUtils.isEmpty(taRecommendCustomer.getRealtyConsultant())){
|
457
|
TaPerson consultant = taPersonMapper.getById(taRecommendCustomer.getRealtyConsultant());
|
457
|
TaPerson consultant = taPersonMapper.getById(taRecommendCustomer.getRealtyConsultant());
|
|
|
458
|
+ if(null == consultant){
|
|
|
459
|
+ TaUser user = userService.getById(taRecommendCustomer.getRealtyConsultant());
|
|
|
460
|
+ consultant.setPersonId(taRecommendCustomer.getRealtyConsultant());
|
|
|
461
|
+ consultant.setTel(user.getPhone());
|
|
|
462
|
+ consultant.setPhone(user.getPhone());
|
|
|
463
|
+ consultant.setDepartment(user.getDepartment());
|
|
|
464
|
+ consultant.setUserId(user.getUserId());
|
|
|
465
|
+ consultant.setPost(user.getPosition());
|
|
|
466
|
+ consultant.setName(user.getUserName());
|
|
|
467
|
+ consultant.setAddress(user.getAddress());
|
|
|
468
|
+ consultant.setAvatarurl(user.getAvatar());
|
|
|
469
|
+ consultant.setCompany(user.getOrgName());
|
|
|
470
|
+ }
|
458
|
consultant.setProjects(taPersonMapper.getUserProjects(consultant.getUserId()));
|
471
|
consultant.setProjects(taPersonMapper.getUserProjects(consultant.getUserId()));
|
459
|
taRecommendCustomer.setConsultant(consultant);
|
472
|
taRecommendCustomer.setConsultant(consultant);
|
460
|
}
|
473
|
}
|