|
@@ -251,14 +251,20 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
251
|
251
|
return taRecommendCustomerMapper.getCustomerList(page,building,name,tel,consultName,consultTel);
|
252
|
252
|
}
|
253
|
253
|
|
|
254
|
+ @Override
|
|
255
|
+ public TaRecommendCustomer getCustomerById(String customerId){
|
|
256
|
+ return taRecommendCustomerMapper.getCustomerById(customerId);
|
|
257
|
+ }
|
|
258
|
+
|
|
259
|
+
|
254
|
260
|
@Override
|
255
|
261
|
public TaRecommendCustomer getCustomerDetail(String customerId){
|
256
|
262
|
String personId = taRecommendCustomerMapper.getCustomerPersonId(customerId);
|
257
|
263
|
TaRecommendCustomer taRecommendCustomer = taRecommendCustomerMapper.getCustomerDetail(customerId);
|
258
|
|
- if(!personId.equals("")&& null != personId){
|
|
264
|
+ if(!StringUtils.isEmpty(personId)){
|
259
|
265
|
taRecommendCustomer.setVisitRecords(taPersonVisitRecordMapper.visitRecordByPersonId(personId));
|
260
|
266
|
}
|
261
|
|
- if(!taRecommendCustomer.getRealtyConsultant().equals("")&&null != taRecommendCustomer.getRealtyConsultant()){
|
|
267
|
+ if(!StringUtils.isEmpty(taRecommendCustomer.getRealtyConsultant())){
|
262
|
268
|
TaPerson consultant = taPersonMapper.getById(taRecommendCustomer.getRealtyConsultant());
|
263
|
269
|
consultant.setProjects(taPersonMapper.getUserProjects(consultant.getPersonId()));
|
264
|
270
|
taRecommendCustomer.setConsultant(consultant);
|