|
@@ -328,7 +328,8 @@
|
|
|
usr1.start_time,
|
|
|
usr1.end_time,
|
|
|
IFNULL(usr1.`status`,0) `status`,
|
|
|
- usr1.video_current_time
|
|
|
+ usr1.video_current_time,
|
|
|
+ usr1.study_duration
|
|
|
FROM
|
|
|
course_menu m
|
|
|
LEFT JOIN course_section s ON m.menu_id = s.section_id
|
|
@@ -337,7 +338,8 @@
|
|
|
any_value ( usr.video_current_time ) video_current_time,
|
|
|
any_value ( usr.end_time ) end_time,
|
|
|
MAX ( usr.`status` ) `status`,
|
|
|
- any_value ( usr.section_id ) section_id
|
|
|
+ any_value ( usr.section_id ) section_id,
|
|
|
+ IFNULL(SUM ( usr.study_duration ),0) study_duration
|
|
|
FROM
|
|
|
( SELECT * FROM user_study_record WHERE 1=1
|
|
|
AND module_id = 0
|
|
@@ -370,7 +372,8 @@
|
|
|
usr1.start_time,
|
|
|
usr1.end_time,
|
|
|
IFNULL(usr1.`status`,0) `status`,
|
|
|
- usr1.video_current_time
|
|
|
+ usr1.video_current_time,
|
|
|
+ usr1.study_duration
|
|
|
FROM
|
|
|
course_chapter_section c
|
|
|
LEFT JOIN course_menu m on m.menu_id = c.chapter_id
|
|
@@ -381,7 +384,8 @@
|
|
|
any_value ( usr.video_current_time ) video_current_time,
|
|
|
any_value ( usr.end_time ) end_time,
|
|
|
MAX ( usr.`status` ) `status`,
|
|
|
- any_value ( usr.section_id ) section_id
|
|
|
+ any_value ( usr.section_id ) section_id,
|
|
|
+ IFNULL(SUM ( usr.study_duration ),0) study_duration
|
|
|
FROM
|
|
|
( SELECT * FROM user_study_record WHERE 1=1
|
|
|
<if test="userId != null and userId !=''">
|
|
@@ -412,7 +416,8 @@
|
|
|
usr1.start_time,
|
|
|
usr1.end_time,
|
|
|
IFNULL(usr1.`status`,0) `status`,
|
|
|
- usr1.video_current_time
|
|
|
+ usr1.video_current_time,
|
|
|
+ usr1.study_duration
|
|
|
FROM
|
|
|
course_chapter_section c
|
|
|
LEFT JOIN course_module_chapter e on c.chapter_id = e.chapter_id
|
|
@@ -425,7 +430,8 @@
|
|
|
any_value ( usr.video_current_time ) video_current_time,
|
|
|
any_value ( usr.end_time ) end_time,
|
|
|
MAX ( usr.`status` ) `status`,
|
|
|
- any_value ( usr.section_id ) section_id
|
|
|
+ any_value ( usr.section_id ) section_id,
|
|
|
+ IFNULL(SUM ( usr.study_duration ),0) study_duration
|
|
|
FROM
|
|
|
( SELECT * FROM user_study_record WHERE 1=1
|
|
|
|