he2802 2 years ago
parent
commit
8db185cfd9

+ 8 - 2
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeUserMapper.xml

@@ -199,6 +199,7 @@
         <result property="performance" column="performance"/>
         <result property="sort" column="sort"/>
         <result property="doType" column="do_type"/>
+        <result property="moduleId" column="module_id"/>
     </resultMap>
 
     <resultMap type="com.zhongzheng.modules.grade.vo.ClassPeriodSectionVo" id="ClassPeriodSectionVo">
@@ -222,6 +223,8 @@
         <result property="realDuration" column="real_duration"/>
         <result property="recordingUrl" column="recording_url"/>
         <result property="doType" column="do_type"/>
+        <result property="chapterId" column="chapter_id"/>
+        <result property="moduleId" column="module_id"/>
     </resultMap>
 
     <resultMap type="com.zhongzheng.modules.course.vo.CourseChapterVo" id="CourseChapterResultVo">
@@ -1036,7 +1039,9 @@
 
         (SELECT e.exam_name FROM exam e where cme.exam_id = e.exam_id) as type_name,
         null as class_hours,
-        4 as type
+        4 as type,
+        cme.chapter_id,
+        cme.module_id
         FROM
         course_menu_exam cme
         LEFT JOIN exam e ON cme.exam_id = e.exam_id
@@ -1069,7 +1074,8 @@
         </if>
         (SELECT e.exam_name FROM exam e where cme.exam_id = e.exam_id) as type_name,
         null as class_hours,
-        5 as type
+        5 as type,
+        cme.module_id
         FROM
         course_menu_exam cme
         LEFT JOIN exam e ON cme.exam_id = e.exam_id