|
|
@@ -120,7 +120,7 @@
|
|
|
select post.id,post.video_id,post.title,post.cover_url,post.duration,post.horizontal,post.publish_at,post.publish_by,post.status,
|
|
|
statistic.view,statistic.comment
|
|
|
from vod_video_post post
|
|
|
- inner join video_statistic statistic
|
|
|
+ inner join vod_video_statistic statistic
|
|
|
on statistic.video_id=post.video_id
|
|
|
<where>
|
|
|
and post.deleted=0
|
|
|
@@ -191,7 +191,7 @@
|
|
|
select post.id,post.video_id,post.title,post.cover_url,post.duration,post.horizontal,post.publish_at,post.publish_by,post.status,
|
|
|
statistic.view,statistic.comment
|
|
|
from vod_video_post post
|
|
|
- inner join video_statistic statistic
|
|
|
+ inner join vod_video_statistic statistic
|
|
|
on statistic.video_id=post.video_id
|
|
|
<where>
|
|
|
and post.deleted=0
|
|
|
@@ -239,7 +239,7 @@
|
|
|
select post.id,post.video_id,post.title,post.cover_url,post.duration,post.horizontal,post.publish_at as publish_at,post.publish_by,post.status,
|
|
|
statistic.view,statistic.comment
|
|
|
from vod_video_post post
|
|
|
- inner join video_statistic statistic
|
|
|
+ inner join vod_video_statistic statistic
|
|
|
on post.deleted=0 and statistic.video_id=post.video_id and post.status in (2,5,6,7) and post.video_id in
|
|
|
<foreach collection="list" item="id" index="index" open="(" close=")" separator=",">
|
|
|
#{id}
|
|
|
@@ -249,7 +249,7 @@
|
|
|
select post.id,post.video_id,post.title,post.cover_url,post.duration,post.horizontal,post.publish_at as publish_at,post.publish_by,post.status,
|
|
|
statistic.view,statistic.comment
|
|
|
from vod_video_post post
|
|
|
- inner join video_statistic statistic
|
|
|
+ inner join vod_video_statistic statistic
|
|
|
on statistic.video_id=post.video_id and post.status in (2,5,6,7) and post.publish_by in
|
|
|
<foreach collection="userIds" item="id" index="index" open="(" close=")" separator=",">
|
|
|
#{id}
|
|
|
@@ -283,7 +283,7 @@
|
|
|
statistic.view,statistic.danmaku,statistic.comment,statistic.thumb_up,
|
|
|
statistic.favorite,statistic.share
|
|
|
from vod_video_post post
|
|
|
- inner join video_statistic statistic
|
|
|
+ inner join vod_video_statistic statistic
|
|
|
on statistic.video_id=post.video_id
|
|
|
<where>
|
|
|
post.deleted=0
|
|
|
@@ -314,7 +314,7 @@
|
|
|
select post.id,post.video_id,post.title,post.cover_url,post.duration,post.horizontal,post.publish_at,post.publish_by,post.status,
|
|
|
statistic.view,statistic.comment
|
|
|
from vod_video_post post
|
|
|
- inner join video_statistic statistic
|
|
|
+ inner join vod_video_statistic statistic
|
|
|
on statistic.video_id=post.video_id
|
|
|
<where>
|
|
|
post.deleted=0
|