he2802 4 年 前
コミット
c972d40189

+ 29 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/vo/CourseChapterSectionListVo.java

@@ -0,0 +1,29 @@
+package com.zhongzheng.modules.course.vo;
+
+import com.zhongzheng.common.annotation.Excel;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+
+/**
+ * 章与节关系视图对象 mall_package
+ *
+ * @author hjl
+ * @date 2021-10-12
+ */
+@Data
+@ApiModel("章与节关系视图对象")
+public class CourseChapterSectionListVo {
+	private static final long serialVersionUID = 1L;
+
+	/** 节名称 */
+	@Excel(name = "节名称")
+	@ApiModelProperty("节名称")
+	private String chapterName;
+	/** 章ID */
+	@Excel(name = "章ID")
+	@ApiModelProperty("章ID")
+	private Long chapterId;
+
+}

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

@@ -33,7 +33,4 @@ public class CourseChapterSectionVo {
 	@ApiModelProperty("章ID")
 	private Long chapterId;
 
-	/** $pkColumn.columnComment */
-	@ApiModelProperty("$pkColumn.columnComment")
-	private Long csId;
 }

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

@@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="coverUrl" column="cover_url"/>
         <result property="code" column="code"/>
         <collection property="businessList" javaType="java.util.List" resultMap="CourseSectionBusiness"/>
-        <collection property="chapterList" javaType="java.util.List" resultMap="CourseChapterSectionResult"/>
+        <collection property="chapterList" javaType="java.util.List" resultMap="CourseChapterSectionListResult"/>
     </resultMap>
 
     <resultMap type="com.zhongzheng.modules.course.domain.CourseSectionBusiness" id="CourseSectionBusiness">
@@ -58,9 +58,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <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"/>
+    <resultMap type="com.zhongzheng.modules.course.vo.CourseChapterSectionListVo" id="CourseChapterSectionListResult">
+        <result property="chapterName" column="chapter_name"/>
         <result property="chapterId" column="chapter_id"/>
     </resultMap>