Browse Source

* bug fix

顾绍勇 5 years ago
parent
commit
1b0c13b714

+ 2
- 3
src/main/java/com/huiju/estateagents/service/impl/TsConsultantKpiServiceImpl.java View File

@@ -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