Browse Source

更新 content-service mapper 中的表名

reghao 1 year ago
parent
commit
af9f667971

+ 1 - 1
content/content-service/src/main/resources/mapper/vod/PostItemMapper.xml

@@ -38,7 +38,7 @@
         where album_id in
               (
                   select album_id
-                  from post_album
+                  from vod_post_album
                   where post_type=1 and create_by=#{createBy}
               )
           and post_id=#{imageFileId}

+ 6 - 6
content/content-service/src/main/resources/mapper/vod/VideoPostMapper.xml

@@ -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