|
@@ -480,10 +480,10 @@
|
|
|
cm.course_id,
|
|
|
( SELECT u.realname FROM `user` u WHERE 1=1 <if test="userId != null and userId !='' ">
|
|
|
and u.user_id = #{userId}
|
|
|
- </if> ) AS realname,
|
|
|
+ </if> LIMIT 1) AS realname,
|
|
|
( SELECT u.user_id FROM `user` u WHERE 1=1 <if test="userId != null and userId !='' ">
|
|
|
and u.user_id = #{userId}
|
|
|
- </if>) AS user_id,
|
|
|
+ </if> LIMIT 1) AS user_id,
|
|
|
cc.`name` as type_name,
|
|
|
( SELECT COUNT( ccs.section_id ) FROM course_chapter_section ccs WHERE ccs.chapter_id = cc.chapter_id ) AS
|
|
|
class_hours,
|
|
@@ -541,7 +541,7 @@
|
|
|
AND cme.course_id =#{courseId}
|
|
|
</if>
|
|
|
AND cme.chapter_id = cmc.chapter_id
|
|
|
- ) AS performance
|
|
|
+ LIMIT 1 ) AS performance
|
|
|
FROM
|
|
|
course_menu cm
|
|
|
LEFT JOIN course_module_chapter cmc ON cm.menu_id = cmc.module_id
|