| | |
| | | where a.id=b.master_id and a.id=#{id} and b.source_id=c.id |
| | | </select> |
| | | |
| | | <select id="selectVideoListInPage" resultType="cc.mrbird.febs.video.vo.VideoListVo"> |
| | | select |
| | | a.*, |
| | | count(b.id) itemCnt, |
| | | (select c.time_length from video_master_source c where b.source_id=c.id limit 1) timeLength |
| | | from video_master_info a |
| | | inner join video_master_items b on a.id=b.master_id |
| | | inner join video_master_data d on a.id=d.master_id |
| | | <where> |
| | | 1=1 |
| | | <if test="record.isUp != null"> |
| | | and a.is_up = #{record.isUp} |
| | | </if> |
| | | <if test="record.isFree != null"> |
| | | and a.is_free = #{record.isFree} |
| | | </if> |
| | | <if test="record.query != null and record.query != ''"> |
| | | and title like concat('%', #{record.query}, '%') |
| | | </if> |
| | | </where> |
| | | group by a.id |
| | | order by d.play_cnt desc, a.created_time desc |
| | | </select> |
| | | </mapper> |