|
@@ -25,6 +25,7 @@ import com.huiju.estateagents.service.ITaPersonVisitRecordService;
|
25
|
25
|
import org.springframework.beans.factory.annotation.Autowired;
|
26
|
26
|
import org.springframework.stereotype.Service;
|
27
|
27
|
|
|
28
|
+import java.util.Collections;
|
28
|
29
|
import java.util.List;
|
29
|
30
|
|
30
|
31
|
/**
|
|
@@ -196,12 +197,12 @@ public class TaPersonVisitRecordServiceImpl extends ServiceImpl<TaPersonVisitRec
|
196
|
197
|
QueryWrapper<TaRecommendCustomer> queryWrapper = new QueryWrapper();
|
197
|
198
|
queryWrapper.eq("realty_consultant",e.getConsultantId());
|
198
|
199
|
queryWrapper.eq("person_id",e.getPersonId());
|
199
|
|
- TaRecommendCustomer taRecommendCustomer = taRecommendCustomerMapper.selectOne(queryWrapper);
|
200
|
|
- if (null != taRecommendCustomer){
|
|
200
|
+ List<TaRecommendCustomer> taRecommendCustomers = taRecommendCustomerMapper.selectList(queryWrapper);
|
|
201
|
+ if (taRecommendCustomers.size() > 0){
|
201
|
202
|
//1是我的客户
|
202
|
203
|
e.setMyCustomer(CommConstant.STATUS_NORMAL);
|
203
|
204
|
//返回customer_id给微信端
|
204
|
|
- e.setCustomerId(taRecommendCustomer.getCustomerId());
|
|
205
|
+ e.setCustomerId(taRecommendCustomers.get(0).getCustomerId());
|
205
|
206
|
}
|
206
|
207
|
});
|
207
|
208
|
return result;
|