Просмотр исходного кода

3.4.4 update-20250319,复核记录导出bug

xiaofei 3 месяцев назад
Родитель
Сommit
524badbeab

+ 101 - 90
teachcloud-mark/src/main/java/com/qmth/teachcloud/mark/bean/archivescore/ScoreHistoryVo.java

@@ -2,98 +2,109 @@ package com.qmth.teachcloud.mark.bean.archivescore;
 
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
+import com.qmth.boot.tools.excel.annotation.ExcelColumn;
 import com.qmth.teachcloud.common.annotation.ExcelProperty;
 
 public class ScoreHistoryVo {
 
-	@JsonSerialize(using = ToStringSerializer.class)
-	private Long studentId;
-	@ExcelProperty(name = "学号", width = 20, index = 1)
-	private String studentCode;
-	@ExcelProperty(name = "学生姓名", width = 20, index = 2)
-	private String studentName;
-	@ExcelProperty(name = "复核老师工号", width = 20, index = 3)
-	private String loginName;
-	@ExcelProperty(name = "复核老师姓名", width = 20, index = 4)
-	private String name;
-	@ExcelProperty(name = "大题号", width = 20, index = 5)
-	private Integer mainNumber;
-	@ExcelProperty(name = "小题号", width = 20, index = 6)
-	private Integer subNumber;
-	@ExcelProperty(name = "原始分数", width = 20, index = 7)
-	private Double originalScore;
-	@ExcelProperty(name = "复核后分数", width = 20, index = 8)
-	private Double score;
-
-	public Long getStudentId() {
-		return studentId;
-	}
-
-	public void setStudentId(Long studentId) {
-		this.studentId = studentId;
-	}
-
-	public String getStudentCode() {
-		return studentCode;
-	}
-
-	public void setStudentCode(String studentCode) {
-		this.studentCode = studentCode;
-	}
-
-	public String getStudentName() {
-		return studentName;
-	}
-
-	public void setStudentName(String studentName) {
-		this.studentName = studentName;
-	}
-
-	public String getLoginName() {
-		return loginName;
-	}
-
-	public void setLoginName(String loginName) {
-		this.loginName = loginName;
-	}
-
-	public String getName() {
-		return name;
-	}
-
-	public void setName(String name) {
-		this.name = name;
-	}
-
-	public Integer getMainNumber() {
-		return mainNumber;
-	}
-
-	public void setMainNumber(Integer mainNumber) {
-		this.mainNumber = mainNumber;
-	}
-
-	public Integer getSubNumber() {
-		return subNumber;
-	}
-
-	public void setSubNumber(Integer subNumber) {
-		this.subNumber = subNumber;
-	}
-
-	public Double getOriginalScore() {
-		return originalScore;
-	}
-
-	public void setOriginalScore(Double originalScore) {
-		this.originalScore = originalScore;
-	}
-
-	public Double getScore() {
-		return score;
-	}
-
-	public void setScore(Double score) {
-		this.score = score;
-	}
+    @JsonSerialize(using = ToStringSerializer.class)
+    private Long studentId;
+    @ExcelColumn(name = "学号", index = 0)
+    private String studentCode;
+    @ExcelColumn(name = "学生姓名", index = 1)
+    private String studentName;
+    @ExcelColumn(name = "复核老师工号", index = 2)
+    private String loginName;
+    @ExcelColumn(name = "复核老师姓名", index = 3)
+    private String realName;
+    @ExcelColumn(name = "大题号", index = 4)
+    private Integer mainNumber;
+    @ExcelColumn(name = "小题号", index = 5)
+    private Integer subNumber;
+    @ExcelColumn(name = "原始分数", index = 6)
+    private Double originalScore;
+    @ExcelColumn(name = "复核后分数", index = 7)
+    private Double score;
+    @ExcelColumn(name = "复核时间", index = 8)
+    private String createTime;
+
+    public Long getStudentId() {
+        return studentId;
+    }
+
+    public void setStudentId(Long studentId) {
+        this.studentId = studentId;
+    }
+
+    public String getStudentCode() {
+        return studentCode;
+    }
+
+    public void setStudentCode(String studentCode) {
+        this.studentCode = studentCode;
+    }
+
+    public String getStudentName() {
+        return studentName;
+    }
+
+    public void setStudentName(String studentName) {
+        this.studentName = studentName;
+    }
+
+    public String getLoginName() {
+        return loginName;
+    }
+
+    public void setLoginName(String loginName) {
+        this.loginName = loginName;
+    }
+
+    public String getRealName() {
+        return realName;
+    }
+
+    public void setRealName(String realName) {
+        this.realName = realName;
+    }
+
+    public Integer getMainNumber() {
+        return mainNumber;
+    }
+
+    public void setMainNumber(Integer mainNumber) {
+        this.mainNumber = mainNumber;
+    }
+
+    public Integer getSubNumber() {
+        return subNumber;
+    }
+
+    public void setSubNumber(Integer subNumber) {
+        this.subNumber = subNumber;
+    }
+
+    public Double getOriginalScore() {
+        return originalScore;
+    }
+
+    public void setOriginalScore(Double originalScore) {
+        this.originalScore = originalScore;
+    }
+
+    public Double getScore() {
+        return score;
+    }
+
+    public void setScore(Double score) {
+        this.score = score;
+    }
+
+    public String getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(String createTime) {
+        this.createTime = createTime;
+    }
 }

+ 3 - 2
teachcloud-mark/src/main/resources/mapper/MarkHeaderHistoryMapper.xml

@@ -27,8 +27,9 @@
         su.real_name,
         mh.main_number,
         mh.sub_number,
-        mh.originalScore,
-        mh.score
+        mh.original_score,
+        mh.score,
+        DATE_FORMAT(FROM_UNIXTIME(mh.create_time/1000), '%Y-%m-%d %H:%i:%s') create_time
         FROM mark_header_history mh
         left join sys_user su on mh.user_id = su.id
         left join mark_student ms on mh.student_id = ms.id