|
@@ -108,10 +108,9 @@ 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
|
|
- return page;
|
|
111
|
+ if (null != taPerson){
|
|
112
|
+ personId = taPerson.getPersonId();
|
113
|
113
|
}
|
114
|
|
- personId = taPerson.getPersonId();
|
115
|
114
|
return taRecommendCustomerMapper.getCustomerListOfConsultant(page, orgId, userId, buildingId, startDate, endDate, personId);
|
116
|
115
|
}
|
117
|
116
|
|