|
@@ -628,7 +628,7 @@
|
|
|
FROM
|
|
FROM
|
|
|
goods_course c LEFT JOIN course_menu_exam m ON m.course_id = c.course_id
|
|
goods_course c LEFT JOIN course_menu_exam m ON m.course_id = c.course_id
|
|
|
where
|
|
where
|
|
|
- m.type = 1
|
|
|
|
|
|
|
+ m.type in (1,3)
|
|
|
and c.goods_id = #{goodsId}) as exam_num,
|
|
and c.goods_id = #{goodsId}) as exam_num,
|
|
|
(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
|
|
(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.grade_id = cg.grade_id and ubr.user_id = cgu.user_id and ubr.current_status = 1) as record_num,
|