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