diff --git a/src/main/java/com/syzb/video/service/admin/AdminVideoInteractionService.java b/src/main/java/com/syzb/video/service/admin/AdminVideoInteractionService.java index 52310e8..ec377c2 100644 --- a/src/main/java/com/syzb/video/service/admin/AdminVideoInteractionService.java +++ b/src/main/java/com/syzb/video/service/admin/AdminVideoInteractionService.java @@ -343,7 +343,7 @@ public class AdminVideoInteractionService { public Integer queryWatchUserCount(Collection videoIds) { QueryWrapper wrapper = Wrappers.query() // 总观看时长使用字段live_seconds,总人数使用字段vod_seconds - .select("video_id, ifnull(count(0), 0) as vod_seconds") + .select("count(0) as vod_seconds") .in("video_id", videoIds); VideoUserWatchCollect totalWatch = videoUserWatchCollectMapper.selectOne(wrapper); return totalWatch == null ? 0 : totalWatch.getVodSeconds();