Ver código fonte

fix 学习记录

he2802 3 anos atrás
pai
commit
99a0213558

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/vo/UserExamRecordVo.java

@@ -111,4 +111,6 @@ public class UserExamRecordVo {
 	@Excel(name = "主观题得分")
 	@ApiModelProperty("主观题得分")
 	private BigDecimal score;
+	@ApiModelProperty("做卷类型  1练习 2考试")
+	private Integer doType;
 }

+ 2 - 0
zhongzheng-system/src/main/resources/mapper/modules/user/UserExamRecordMapper.xml

@@ -45,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="chapterExamId" column="chapter_exam_id"/>
         <result property="doQuestionIds" column="do_question_ids"/>
         <result property="rightQuestionIds" column="right_question_ids"/>
+        <result property="doType" column="do_type"/>
 
         <result property="examName" column="exam_name"/>
         <result property="paperName" column="paper_name"/>
@@ -152,6 +153,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         SELECT
             e.exam_id,
             e.exam_name,
+            e.do_type,
             uer.total_question_num
         FROM
             ( SELECT exam_id, MAX( total_question_num ) total_question_num FROM user_exam_record WHERE user_id = #{userId} AND goods_id = #{goodsId} GROUP BY exam_id ) uer