|
@@ -108,9 +108,10 @@ public class TsConsultantKpiServiceImpl extends ServiceImpl<TsConsultantKpiMappe
|
108
|
108
|
public IPage<TaRecommendCustomer> getCustomerListOfConsultant(IPage<TaRecommendCustomer> page, Integer orgId, String userId, String buildingId, LocalDateTime startDate, LocalDateTime endDate) {
|
109
|
109
|
String personId = null;
|
110
|
110
|
TaPerson taPerson = taPersonMapper.selectOne(new QueryWrapper<TaPerson>().eq("user_id", userId).eq("org_id", orgId));
|
111
|
|
- if (null != taPerson){
|
112
|
|
- personId = taPerson.getPersonId();
|
|
111
|
+ if (null == taPerson){
|
|
112
|
+ return page;
|
113
|
113
|
}
|
|
114
|
+ personId = taPerson.getPersonId();
|
114
|
115
|
return taRecommendCustomerMapper.getCustomerListOfConsultant(page, orgId, userId, buildingId, startDate, endDate, personId);
|
115
|
116
|
}
|
116
|
117
|
|