|
@@ -6,8 +6,9 @@
|
|
|
<mapper namespace="top.lvzhiqiang.mapper.VideoInfoPoolMapper">
|
|
<mapper namespace="top.lvzhiqiang.mapper.VideoInfoPoolMapper">
|
|
|
|
|
|
|
|
<select id="getVideoInfoPoolList" resultType="top.lvzhiqiang.entity.VideoInfo">
|
|
<select id="getVideoInfoPoolList" resultType="top.lvzhiqiang.entity.VideoInfo">
|
|
|
- select vi.id,vi.name,vi.identification_code,vi.issue_date,vi.modify_time,vi.type,vi.img_url,vi.genres AS main_who,vi.cast As score
|
|
|
|
|
|
|
+ select vi.id,vi.name,vi.identification_code,vi.issue_date,vi.modify_time,vi.type,vi.img_url,vi.cast AS main_who,IFNULL(vio.score, 0) AS score, IFNULL(vio.comment, '暂无评论') AS comment
|
|
|
from video_info_pool vi
|
|
from video_info_pool vi
|
|
|
|
|
+ left join video_info_other vio on vi.identification_code = vio.identification_code and vio.delete_flag = 1
|
|
|
where vi.delete_flag = 1
|
|
where vi.delete_flag = 1
|
|
|
<if test="keyword != null and keyword != ''">
|
|
<if test="keyword != null and keyword != ''">
|
|
|
and (vi.name like #{keyword} or vi.identification_code like #{keyword})
|
|
and (vi.name like #{keyword} or vi.identification_code like #{keyword})
|
|
@@ -18,12 +19,15 @@
|
|
|
<when test="genres == '待审查'">
|
|
<when test="genres == '待审查'">
|
|
|
vi.type = 1
|
|
vi.type = 1
|
|
|
</when>
|
|
</when>
|
|
|
- <when test="genres == '审查已通过'">
|
|
|
|
|
|
|
+ <when test="genres == '审查中'">
|
|
|
vi.type = 2
|
|
vi.type = 2
|
|
|
</when>
|
|
</when>
|
|
|
- <when test="genres == '审查未通过'">
|
|
|
|
|
|
|
+ <when test="genres == '审查已通过'">
|
|
|
vi.type = 3
|
|
vi.type = 3
|
|
|
</when>
|
|
</when>
|
|
|
|
|
+ <when test="genres == '审查未通过'">
|
|
|
|
|
+ vi.type = 4
|
|
|
|
|
+ </when>
|
|
|
<otherwise></otherwise>
|
|
<otherwise></otherwise>
|
|
|
</choose>
|
|
</choose>
|
|
|
</if>
|
|
</if>
|