Browse Source

学习记录

he2802 3 years ago
parent
commit
f8d1a6157b

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

@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import lombok.Data;
+
+import java.math.BigDecimal;
 import java.util.Date;
 
 
@@ -64,4 +66,7 @@ public class UserExamRecordAddBo {
     /** 试卷总做题时长(秒数) */
     @ApiModelProperty("试卷总做题时长(秒数)")
     private Long examTime;
+    /** 总分 */
+    @ApiModelProperty("总分")
+    private BigDecimal totalScore;
 }

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

@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import lombok.Data;
+
+import java.math.BigDecimal;
 import java.util.Date;
 
 
@@ -80,5 +82,8 @@ public class UserExamRecordEditBo {
     /** 试卷总做题时长(秒数) */
     @ApiModelProperty("试卷总做题时长(秒数)")
     private Long examTime;
+    /** 总分 */
+    @ApiModelProperty("总分")
+    private BigDecimal totalScore;
 
 }

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

@@ -60,4 +60,6 @@ private static final long serialVersionUID=1L;
     private Long doTime;
     /** 试卷总做题时长(秒数) */
     private Long examTime;
+    /** 总分 */
+    private BigDecimal totalScore;
 }

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

@@ -7,6 +7,8 @@ import com.fasterxml.jackson.annotation.JsonFormat;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
+
+import java.math.BigDecimal;
 import java.util.Date;
 
 
@@ -93,4 +95,8 @@ public class UserExamRecordVo {
 	@Excel(name = "试卷总做题时长(秒数)")
 	@ApiModelProperty("试卷总做题时长(秒数)")
 	private Long examTime;
+	/** 总分 */
+	@Excel(name = "总分")
+	@ApiModelProperty("总分")
+	private BigDecimal totalScore;
 }

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

@@ -22,6 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="chapterExamId" column="chapter_exam_id"/>
         <result property="doTime" column="do_time"/>
         <result property="examTime" column="exam_time"/>
+        <result property="totalScore" column="total_score"/>
     </resultMap>
 
     <resultMap type="com.zhongzheng.modules.user.vo.UserExamRecordVo" id="UserExamRecordVoResult">
@@ -44,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="paperName" column="paper_name"/>
         <result property="doTime" column="do_time"/>
         <result property="examTime" column="exam_time"/>
+        <result property="totalScore" column="total_score"/>
     </resultMap>
 
     <select id="selectList" parameterType="com.zhongzheng.modules.user.bo.UserExamRecordQueryBo" resultMap="UserExamRecordVoResult">