|
@@ -159,11 +159,8 @@ public class TaPersonVisitRecordServiceImpl extends ServiceImpl<TaPersonVisitRec
|
159
|
159
|
List<TaPersonVisitRecord> records = result.getRecords();
|
160
|
160
|
//判断是否我的客户状态
|
161
|
161
|
records.forEach(e -> {
|
162
|
|
- String data = e.getData();
|
163
|
|
- JSONObject dataJson = JSONObject.parseObject(data);
|
164
|
|
- String realtyConsultant = dataJson.getString("consultant");
|
165
|
162
|
QueryWrapper<TaRecommendCustomer> queryWrapper = new QueryWrapper();
|
166
|
|
- queryWrapper.eq("realty_consultant",realtyConsultant);
|
|
163
|
+ queryWrapper.eq("realty_consultant",e.getConsultantId());
|
167
|
164
|
queryWrapper.eq("person_id",e.getPersonId());
|
168
|
165
|
TaRecommendCustomer taRecommendCustomer = taRecommendCustomerMapper.selectOne(queryWrapper);
|
169
|
166
|
if (null != taRecommendCustomer){
|