he2802 3 жил өмнө
parent
commit
834c8ef176

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/course/CourseMapper.xml

@@ -628,7 +628,7 @@
         FROM
         goods_course c  LEFT JOIN  course_menu_exam m ON m.course_id = c.course_id
         where
-        m.type = 1
+        m.type in (1,3)
         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
         = 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,