| | |
| | | WHERE |
| | | LV.delete_flag = 0 AND LV.id = #{id} |
| | | </select> |
| | | |
| | | <select id="healthPage" resultMap="BaseResultMap"> |
| | | SELECT |
| | | LV.author_id, |
| | | LV.cover_url, |
| | | LV.video_fit, |
| | | LV.video_duration, |
| | | LV.video_file_key, |
| | | LV.title, |
| | | LV.goods_view_num, |
| | | LV.goods_order_num, |
| | | LV.recommend, |
| | | LV.status, |
| | | LV.play_num, |
| | | LV.collect_num, |
| | | LV.comment_num, |
| | | LV.weight, |
| | | LV.audit_pass_time, |
| | | LV.update_time, |
| | | LV.video_content_type, |
| | | LV.video_type, |
| | | LV.video_imgs, |
| | | LV.id, |
| | | LM.nick_name as authorName |
| | | FROM |
| | | lmk_video LV |
| | | LEFT JOIN li_member LM ON LV.author_id = LM.id |
| | | <if test="query.tagList != null and query.tagList.size > 0"> |
| | | INNER JOIN ( |
| | | SELECT DISTINCT video_id |
| | | FROM lmk_video_tag_ref |
| | | WHERE video_tag_id IN |
| | | <foreach collection="query.tagList" open="(" item="tagId" close=")" separator=",">#{tagId}</foreach> |
| | | ) AS LVT ON LV.id = LVT.video_id |
| | | </if> |
| | | WHERE |
| | | LV.delete_flag = 0 AND LV.video_type = #{query.videoType} |
| | | <if test="query.title != null and query.title != ''">AND LV.title LIKE CONCAT('%', #{query.title}, '%')</if> |
| | | <if test="query.authorId != null and query.authorId != ''">AND LV.author_id = #{query.authorId}</if> |
| | | <if test="query.status != null and query.status != ''">AND LV.status = #{query.status}</if> |
| | | </select> |
| | | </mapper> |