|
@@ -543,7 +543,7 @@
|
|
|
g.study_start_time,
|
|
|
g.study_end_time,
|
|
|
(SELECT COUNT(DISTINCT ubr.module_id,ubr.chapter_id,ubr.exam_id) FROM user_bank_record ubr LEFT JOIN class_grade_goods cgg on cgg.goods_id
|
|
|
- = ubr.goods_id where ubr.`status`=1 and ubr.report_status=1 and ubr.grade_id = cg.grade_id and ubr.user_id = cgu.user_id and ubr.current_status = 1) as record_num,
|
|
|
+ = ubr.goods_id where ubr.`status`=1 and ubr.report_status=1 and ubr.`type` in (1,3) and ubr.grade_id = cg.grade_id and ubr.user_id = cgu.user_id and ubr.current_status = 1) as record_num,
|
|
|
cgu.user_id,
|
|
|
cgg.goods_id
|
|
|
FROM
|
|
@@ -558,7 +558,7 @@
|
|
|
course_menu_exam m
|
|
|
LEFT JOIN goods_course c ON m.course_id = c.course_id
|
|
|
where
|
|
|
- m.type = 1
|
|
|
+ m.type = (1,3)
|
|
|
GROUP BY c.goods_id ) ge on cgg.goods_id = ge.goods_id
|
|
|
where 1=1
|
|
|
and cgu.`status` =1
|