소스 검색

update findShortVideo

reghao 1 년 전
부모
커밋
2c254b3f30
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      content/content-service/src/main/resources/mapper/vod/VideoPostMapper.xml

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

@@ -442,7 +442,7 @@
         SELECT t1.*
         FROM vod_video_post AS t1
         JOIN (SELECT ROUND(RAND()*(SELECT MAX(id) FROM vod_video_post)) AS id) AS t2
-        WHERE t1.id>=t2.id and t1.duration<=120 and t1.`status`=2 and t1.scope in
+        WHERE t1.id>=t2.id and t1.duration<=120 and t1.`status`=2 and t1.`horizontal`=0 and t1.scope in
         <foreach collection="list" item="id" index="index" open="(" close=")" separator=",">
             #{id}
         </foreach>