Commit 17f30a85 authored by 王淑君's avatar 王淑君

修改查询课程目录带进度

parent 0cee8cb3
......@@ -409,12 +409,13 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
// int insertBChapter(BChapter model);
@Select("<script>" +
"SELECT bc.*, brc.current_location as currentLocation " +
"SELECT bc.*, brc.current_location as currentLocation, bf.video_url as videoUrl " +
"FROM " +
" b_lesson_person bp " +
" LEFT JOIN b_lesson b ON bp.lesson_id = b.business_id " +
" LEFT JOIN b_chapter bc ON bc.business_id = bp.chapter_id " +
"left join b_r_student_chapter brc on brc.chapter_id = bc.business_id " +
"left join b_file bf on bf.chapter_id = bc.business_id " +
"WHERE " +
" bp.chapter_id IS NOT NULL " +
" AND bp.chapter_id != '' " +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment