he2802 3 anos atrás
pai
commit
6b5f514b64

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/bo/UserExamRecordAddBo.java

@@ -75,4 +75,7 @@ public class UserExamRecordAddBo {
     /** 做对总题目id拼接 */
     @ApiModelProperty("做对总题目id拼接")
     private String rightQuestionIds;
+    /** 主观题得分 */
+    @ApiModelProperty("主观题得分")
+    private BigDecimal score;
 }

+ 3 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/bo/UserExamRecordEditBo.java

@@ -93,4 +93,7 @@ public class UserExamRecordEditBo {
     /** 做对总题目id拼接 */
     @ApiModelProperty("做对总题目id拼接")
     private String rightQuestionIds;
+    /** 主观题得分 */
+    @ApiModelProperty("主观题得分")
+    private BigDecimal score;
 }

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/domain/UserExamRecord.java

@@ -66,4 +66,6 @@ private static final long serialVersionUID=1L;
     private String doQuestionIds;
     /** 做对总题目id拼接 */
     private String rightQuestionIds;
+    /** 主观题得分 */
+    private BigDecimal score;
 }

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

@@ -107,4 +107,8 @@ public class UserExamRecordVo {
 	@Excel(name = "做对总题目id拼接")
 	@ApiModelProperty("做对总题目id拼接")
 	private String rightQuestionIds;
+	/** 主观题得分 */
+	@Excel(name = "主观题得分")
+	@ApiModelProperty("主观题得分")
+	private BigDecimal score;
 }

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

@@ -25,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="totalScore" column="total_score"/>
         <result property="doQuestionIds" column="do_question_ids"/>
         <result property="rightQuestionIds" column="right_question_ids"/>
+        <result property="score" column="score"/>
     </resultMap>
 
     <resultMap type="com.zhongzheng.modules.user.vo.UserExamRecordVo" id="UserExamRecordVoResult">
@@ -50,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="doTime" column="do_time"/>
         <result property="examTime" column="exam_time"/>
         <result property="totalScore" column="total_score"/>
+        <result property="score" column="score"/>
     </resultMap>
 
     <resultMap type="com.zhongzheng.modules.user.vo.UserExamWrongRecordVo" id="UserExamRecordQuestionVoResult">
@@ -77,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="knowledgeIds" column="knowledge_ids"/>
         <result property="publishStatus" column="publish_status"/>
         <result property="code" column="code"/>
+
     </resultMap>
 
     <select id="selectList" parameterType="com.zhongzheng.modules.user.bo.UserExamRecordQueryBo" resultMap="UserExamRecordVoResult">