he2802 hace 4 años
padre
commit
2b14238ef4

+ 13 - 6
zhongzheng-system/src/main/resources/mapper/modules/course/CourseSectionMapper.xml

@@ -59,20 +59,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
     <select id="selectSectionList" parameterType="com.zhongzheng.modules.course.bo.CourseSectionQueryBo" resultMap="CourseSectionResultVo">
         SELECT
-            csb.*,
+            c.*,
+            csb.education_type_id,
+            csb.business_id,
+            csb.subject_id,
+            csb.project_id,
             cet.education_name,
             cpt.project_name,
             cb.business_name,
-            cs.subject_name ,
+            cs.subject_name,
             ccs.chapter_id,
-            cc.name as chapter_name
+            cc.NAME AS chapter_name
         FROM
-            course_section_business csb
+            course_section c
+                LEFT JOIN course_section_business csb ON c.section_id = csb.section_id
                 LEFT JOIN course_education_type cet ON csb.education_type_id = cet.id
                 LEFT JOIN course_project_type cpt ON csb.project_id = cpt.id
                 LEFT JOIN course_business cb ON csb.business_id = cb.id
                 LEFT JOIN course_subject cs ON csb.subject_id = cs.id
-                LEFT JOIN course_chapter_section ccs on csb.id = ccs.section_id
-                LEFT JOIN course_chapter cc on ccs.chapter_id = cc.chapter_id
+                LEFT JOIN course_chapter_section ccs ON csb.id = ccs.section_id
+                LEFT JOIN course_chapter cc ON ccs.chapter_id = cc.chapter_id
+
+
     </select>
 </mapper>