|
@@ -50,14 +50,14 @@
|
|
|
LEFT JOIN file_info f2 on f2.file_id = vi.cover_file_id
|
|
|
LEFT JOIN teaching_video_type_info ti on ti.id = vi.teaching_video_type_id
|
|
|
<where>
|
|
|
- <if test="fileId != null "> and file_id = #{fileId}</if>
|
|
|
- <if test="coverFileId != null "> and cover_file_id = #{coverFileId}</if>
|
|
|
- <if test="title != null and title != ''"> and title like concat('%', #{title}, '%')</if>
|
|
|
- <if test="videoDescribe != null and videoDescribe != ''"> and video_describe like concat('%', #{videoDescribe}, '%')</if>
|
|
|
- <if test="videoDuration != null and videoDuration != ''"> and video_duration = #{videoDuration}</if>
|
|
|
- <if test="teachingVideoTypeId != null "> and teaching_video_type_id = #{teachingVideoTypeId}</if>
|
|
|
- <if test="shelfStatus != null "> and shelf_status = #{shelfStatus}</if>
|
|
|
- <if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
+ <if test="fileId != null "> and vi.file_id = #{fileId}</if>
|
|
|
+ <if test="coverFileId != null "> and vi.cover_file_id = #{coverFileId}</if>
|
|
|
+ <if test="title != null and title != ''"> and vi.title like concat('%', #{title}, '%')</if>
|
|
|
+ <if test="videoDescribe != null and videoDescribe != ''"> and vi.video_describe like concat('%', #{videoDescribe}, '%')</if>
|
|
|
+ <if test="videoDuration != null and videoDuration != ''"> and vi.video_duration = #{videoDuration}</if>
|
|
|
+ <if test="teachingVideoTypeId != null "> and vi.teaching_video_type_id = #{teachingVideoTypeId}</if>
|
|
|
+ <if test="shelfStatus != null "> and vi.shelf_status = #{shelfStatus}</if>
|
|
|
+ <if test="status != null and status != ''"> and vi.status = #{status}</if>
|
|
|
</where>
|
|
|
order by vi.sort asc
|
|
|
</select>
|