|
@@ -154,8 +154,13 @@ public class TaPersonVisitRecordServiceImpl extends ServiceImpl<TaPersonVisitRec
|
154
|
154
|
*/
|
155
|
155
|
@Override
|
156
|
156
|
public IPage<TaPersonVisitRecord> getWxVisitRecordList(IPage<TaPersonVisitRecord> pg, Integer userId, Integer orgId) {
|
|
157
|
+ //根据userId获取用户信息
|
|
158
|
+ QueryWrapper<TaPerson> taPersonQueryWrapper = new QueryWrapper<>();
|
|
159
|
+ taPersonQueryWrapper.eq("user_id",userId);
|
|
160
|
+ taPersonQueryWrapper.eq("org_id",orgId);
|
|
161
|
+ TaPerson taPerson = taPersonMapper.selectOne(taPersonQueryWrapper);
|
157
|
162
|
//获取我的访问客户列表
|
158
|
|
- IPage<TaPersonVisitRecord> result = personVisitRecordMapper.getWxVisitRecordList(pg,userId,orgId, CommConstant.EVENT_H5);
|
|
163
|
+ IPage<TaPersonVisitRecord> result = personVisitRecordMapper.getWxVisitRecordList(pg,userId,orgId, CommConstant.EVENT_H5,taPerson.getPersonId());
|
159
|
164
|
List<TaPersonVisitRecord> records = result.getRecords();
|
160
|
165
|
//判断是否我的客户状态
|
161
|
166
|
records.forEach(e -> {
|