|
@@ -317,22 +317,31 @@ public class TaPersonVisitRecordController extends BaseController {
|
317
|
317
|
|
318
|
318
|
List<TaConsultantInfo> taConsultantInfos = result.getRecords();
|
319
|
319
|
taConsultantInfos.forEach(e ->{
|
320
|
|
- Integer activityNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), getOrgId(request), userId, CommConstant.POSTER_CONTENT_TYPE_ACTIVITY);
|
321
|
|
- e.setActivityShareNum(activityNum);
|
322
|
|
- Integer helpActivityNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), getOrgId(request), userId, CommConstant.POINTS_CHANGE_HELP);
|
323
|
|
- e.setHelpActivityShareNum(helpActivityNum);
|
324
|
|
- Integer groupActivityNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), getOrgId(request), userId, CommConstant.POINTS_CHANGE_GROUP);
|
325
|
|
- e.setGroupActivityShareNum(groupActivityNum);
|
326
|
|
- Integer newsNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), getOrgId(request), userId, CommConstant.CAROUSEL_NEWS);
|
327
|
|
- e.setNewsNum(newsNum);
|
328
|
|
- Integer buildingNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), getOrgId(request), userId, CommConstant.POSTER_CONTENT_TYPE_BUILDING);
|
329
|
|
- e.setBuildingNum(buildingNum);
|
330
|
|
- Integer drainageNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), getOrgId(request), userId, CommConstant.TARGET_TYPE_H5);
|
331
|
|
- e.setDrainageShareNum(drainageNum);
|
|
320
|
+ Integer shareNum = iTaPersonVisitRecordService.countShareNumByEventType(e.getTargetId(), 26, userId, e.getShareType());
|
|
321
|
+ switch (e.getShareType()){
|
|
322
|
+ case CommConstant.POSTER_CONTENT_TYPE_ACTIVITY:
|
|
323
|
+ e.setActivityShareNum(shareNum);
|
|
324
|
+ break;
|
|
325
|
+ case CommConstant.POINTS_CHANGE_HELP:
|
|
326
|
+ e.setHelpActivityShareNum(shareNum);
|
|
327
|
+ break;
|
|
328
|
+ case CommConstant.POINTS_CHANGE_GROUP:
|
|
329
|
+ e.setGroupActivityShareNum(shareNum);
|
|
330
|
+ break;
|
|
331
|
+ case CommConstant.CAROUSEL_NEWS:
|
|
332
|
+ e.setNewsNum(shareNum);
|
|
333
|
+ break;
|
|
334
|
+ case CommConstant.POSTER_CONTENT_TYPE_BUILDING:
|
|
335
|
+ e.setBuildingNum(shareNum);
|
|
336
|
+ break;
|
|
337
|
+ case CommConstant.TARGET_TYPE_H5:
|
|
338
|
+ e.setDrainageShareNum(shareNum);
|
|
339
|
+ break;
|
|
340
|
+ }
|
332
|
341
|
});
|
333
|
342
|
result.setRecords(taConsultantInfos);
|
334
|
343
|
return ResponseBean.success(result);
|
335
|
344
|
}
|
336
|
345
|
|
337
|
|
-
|
|
346
|
+
|
338
|
347
|
}
|