change 3 роки тому
батько
коміт
aa09df7f50

+ 5 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/bank/vo/ExamVo.java

@@ -112,6 +112,11 @@ public class ExamVo {
 
 	private String subjectName;
 
+	/** 1模块卷 2章卷 3试卷 */
+	@Excel(name = "1模块卷 2章卷 3试卷")
+	@ApiModelProperty("1模块卷 2章卷 3试卷")
+	private Integer type;
+
 	@ApiModelProperty("商品列表")
 	private List<ExamGoodsVo> goodsList;
 }

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

@@ -65,4 +65,9 @@ public class CourseChapterSectionVo {
 	@Excel(name = "节时长(分钟)")
 	@ApiModelProperty("节时长(分钟)")
 	private Long durationTime;
+
+	/** 1模块卷 2章卷 3试卷 */
+	@Excel(name = "1模块卷 2章卷 3试卷")
+	@ApiModelProperty("1模块卷 2章卷 3试卷")
+	private Integer type;
 }

+ 3 - 1
zhongzheng-system/src/main/resources/mapper/modules/bank/QuestionChapterExamMapper.xml

@@ -28,13 +28,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="examPaperId" column="exam_paper_id"/>
         <result property="answerNum" column="answer_num"/>
         <result property="sort" column="exam_sort"/>
+        <result property="type" column="type"/>
         <result property="questionNum" column="question_num"/>
     </resultMap>
 
     <select id="getList" parameterType="com.zhongzheng.modules.bank.bo.QuestionChapterExamQueryBo" resultMap="QuestionChapterExamResultVo">
         SELECT
             e.*,
-            qce.sort AS exam_sort
+            qce.sort AS exam_sort,
+               3 as type
         FROM
             question_chapter_exam qce
                 LEFT JOIN (

+ 3 - 1
zhongzheng-system/src/main/resources/mapper/modules/course/CourseChapterSectionMapper.xml

@@ -16,6 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="chapterId" column="chapter_id"/>
         <result property="sort" column="c_sort"/>
         <result property="id" column="id"/>
+        <result property="type" column="type"/>
 
         <result property="code" column="code"/>
         <result property="name" column="name"/>
@@ -32,7 +33,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             cs.*,
             ccs.sort as c_sort,
             ccs.id,
-            ccs.chapter_id
+            ccs.chapter_id,
+            3 as type
         FROM
             course_chapter_section ccs
                 LEFT JOIN course_section cs ON ccs.section_id = cs.section_id