|
@@ -323,12 +323,7 @@ public class TaPersonVisitRecordController extends BaseController {
|
323
|
323
|
|
324
|
324
|
List<TaConsultantInfo> taConsultantInfos = result.getRecords();
|
325
|
325
|
taConsultantInfos.forEach(e ->{
|
326
|
|
- QueryWrapper<TaPerson> taPersonQueryWrapper = new QueryWrapper<>();
|
327
|
|
- taPersonQueryWrapper.eq("user_id",userId);
|
328
|
|
- taPersonQueryWrapper.eq("org_id",getOrgId(request));
|
329
|
|
- TaPerson taPerson = taPersonService.getOne(taPersonQueryWrapper);
|
330
|
|
-
|
331
|
|
- Integer shareNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), getOrgId(request), userId, e.getEventType(), taPerson.getPersonId());
|
|
326
|
+ Integer shareNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), getOrgId(request), userId, e.getEventType());
|
332
|
327
|
switch (e.getEventType()){
|
333
|
328
|
case CommConstant.POSTER_CONTENT_TYPE_ACTIVITY:
|
334
|
329
|
e.setActivityShareNum(shareNum);
|