Jelajahi Sumber

流业务层

he2802 4 tahun lalu
induk
melakukan
8f5704443d

+ 4 - 4
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/vo/CourseChapterSectionVo.java

@@ -32,8 +32,8 @@ public class CourseChapterSectionVo {
 	@Excel(name = "章ID")
 	@ApiModelProperty("章ID")
 	private Long chapterId;
-	/** 项目ID */
-	@Excel(name = "项目ID")
-	@ApiModelProperty("项目ID")
-	private Long projectId;
+
+	/** $pkColumn.columnComment */
+	@ApiModelProperty("$pkColumn.columnComment")
+	private Long csId;
 }

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/vo/CourseSectionVo.java

@@ -85,4 +85,7 @@ public class CourseSectionVo {
 	/** 业务层级列表 */
 	@ApiModelProperty("业务层级列表")
 	private List<CourseSectionBusiness> businessList;
+	/** 业务层级列表 */
+	@ApiModelProperty("业务层级列表")
+	private List<CourseChapterSectionVo> chapterList;
 }

+ 11 - 3
zhongzheng-system/src/main/resources/mapper/modules/course/CourseSectionMapper.xml

@@ -41,12 +41,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="recordingDuration" column="recording_duration"/>
         <result property="coverUrl" column="cover_url"/>
         <result property="code" column="code"/>
-        <collection property="businessList" javaType="java.util.List" resultMap="CourseStreamingBusinessResult"/>
+        <collection property="businessList" javaType="java.util.List" resultMap="CourseSectionBusiness"/>
+        <collection property="chapterList" javaType="java.util.List" resultMap="CourseChapterSectionResult"/>
     </resultMap>
 
-    <resultMap type="com.zhongzheng.modules.course.domain.CourseStreamingBusiness" id="CourseStreamingBusinessResult">
+    <resultMap type="com.zhongzheng.modules.course.domain.CourseSectionBusiness" id="CourseSectionBusiness">
         <result property="id" column="id"/>
-        <result property="streamingId" column="streaming_id"/>
+        <result property="subjectId" column="subject_id"/>
         <result property="educationTypeId" column="education_type_id"/>
         <result property="businessId" column="business_id"/>
         <result property="projectId" column="project_id"/>
@@ -54,6 +55,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="educationName" column="education_name"/>
         <result property="projectName" column="project_name"/>
         <result property="businessName" column="business_name"/>
+        <result property="subjectName" column="subject_name"/>
+    </resultMap>
+
+    <resultMap type="com.zhongzheng.modules.course.vo.CourseChapterSectionVo" id="CourseChapterSectionResult">
+        <result property="csId" column="cs_id"/>
+        <result property="sectionId" column="section_id"/>
+        <result property="chapterId" column="chapter_id"/>
     </resultMap>
 
     <select id="selectSectionList" parameterType="com.zhongzheng.modules.course.bo.CourseSectionQueryBo" resultMap="CourseSectionResultVo">