|
@@ -1,15 +1,18 @@
|
|
package com.qmth.teachcloud.mark.entity;
|
|
package com.qmth.teachcloud.mark.entity;
|
|
|
|
|
|
-import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
import com.qmth.teachcloud.common.enums.mark.MarkArbitrateStatus;
|
|
import com.qmth.teachcloud.common.enums.mark.MarkArbitrateStatus;
|
|
|
|
+import com.qmth.teachcloud.mark.dto.mark.ScoreItem;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
+import java.util.LinkedList;
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -20,7 +23,7 @@ import java.io.Serializable;
|
|
* @since 2023-09-22
|
|
* @since 2023-09-22
|
|
*/
|
|
*/
|
|
@TableName("mark_arbitrate_history")
|
|
@TableName("mark_arbitrate_history")
|
|
-@ApiModel(value="MarkArbitrateHistory对象", description="仲裁记录表")
|
|
|
|
|
|
+@ApiModel(value = "MarkArbitrateHistory对象", description = "仲裁记录表")
|
|
public class MarkArbitrateHistory implements Serializable {
|
|
public class MarkArbitrateHistory implements Serializable {
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
@@ -76,6 +79,7 @@ public class MarkArbitrateHistory implements Serializable {
|
|
public void setId(Long id) {
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
this.id = id;
|
|
}
|
|
}
|
|
|
|
+
|
|
public Long getExamId() {
|
|
public Long getExamId() {
|
|
return examId;
|
|
return examId;
|
|
}
|
|
}
|
|
@@ -83,6 +87,7 @@ public class MarkArbitrateHistory implements Serializable {
|
|
public void setExamId(Long examId) {
|
|
public void setExamId(Long examId) {
|
|
this.examId = examId;
|
|
this.examId = examId;
|
|
}
|
|
}
|
|
|
|
+
|
|
public String getPaperNumber() {
|
|
public String getPaperNumber() {
|
|
return paperNumber;
|
|
return paperNumber;
|
|
}
|
|
}
|
|
@@ -90,6 +95,7 @@ public class MarkArbitrateHistory implements Serializable {
|
|
public void setPaperNumber(String paperNumber) {
|
|
public void setPaperNumber(String paperNumber) {
|
|
this.paperNumber = paperNumber;
|
|
this.paperNumber = paperNumber;
|
|
}
|
|
}
|
|
|
|
+
|
|
public Integer getGroupNumber() {
|
|
public Integer getGroupNumber() {
|
|
return groupNumber;
|
|
return groupNumber;
|
|
}
|
|
}
|
|
@@ -97,6 +103,7 @@ public class MarkArbitrateHistory implements Serializable {
|
|
public void setGroupNumber(Integer groupNumber) {
|
|
public void setGroupNumber(Integer groupNumber) {
|
|
this.groupNumber = groupNumber;
|
|
this.groupNumber = groupNumber;
|
|
}
|
|
}
|
|
|
|
+
|
|
public String getStudentCode() {
|
|
public String getStudentCode() {
|
|
return studentCode;
|
|
return studentCode;
|
|
}
|
|
}
|
|
@@ -104,6 +111,7 @@ public class MarkArbitrateHistory implements Serializable {
|
|
public void setStudentCode(String studentCode) {
|
|
public void setStudentCode(String studentCode) {
|
|
this.studentCode = studentCode;
|
|
this.studentCode = studentCode;
|
|
}
|
|
}
|
|
|
|
+
|
|
public String getSecretNumber() {
|
|
public String getSecretNumber() {
|
|
return secretNumber;
|
|
return secretNumber;
|
|
}
|
|
}
|
|
@@ -111,6 +119,7 @@ public class MarkArbitrateHistory implements Serializable {
|
|
public void setSecretNumber(String secretNumber) {
|
|
public void setSecretNumber(String secretNumber) {
|
|
this.secretNumber = secretNumber;
|
|
this.secretNumber = secretNumber;
|
|
}
|
|
}
|
|
|
|
+
|
|
public Long getStudentId() {
|
|
public Long getStudentId() {
|
|
return studentId;
|
|
return studentId;
|
|
}
|
|
}
|
|
@@ -118,6 +127,7 @@ public class MarkArbitrateHistory implements Serializable {
|
|
public void setStudentId(Long studentId) {
|
|
public void setStudentId(Long studentId) {
|
|
this.studentId = studentId;
|
|
this.studentId = studentId;
|
|
}
|
|
}
|
|
|
|
+
|
|
public MarkArbitrateStatus getStatus() {
|
|
public MarkArbitrateStatus getStatus() {
|
|
return status;
|
|
return status;
|
|
}
|
|
}
|
|
@@ -141,6 +151,7 @@ public class MarkArbitrateHistory implements Serializable {
|
|
public void setTotalScore(Double totalScore) {
|
|
public void setTotalScore(Double totalScore) {
|
|
this.totalScore = totalScore;
|
|
this.totalScore = totalScore;
|
|
}
|
|
}
|
|
|
|
+
|
|
public String getScoreList() {
|
|
public String getScoreList() {
|
|
return scoreList;
|
|
return scoreList;
|
|
}
|
|
}
|
|
@@ -148,6 +159,7 @@ public class MarkArbitrateHistory implements Serializable {
|
|
public void setScoreList(String scoreList) {
|
|
public void setScoreList(String scoreList) {
|
|
this.scoreList = scoreList;
|
|
this.scoreList = scoreList;
|
|
}
|
|
}
|
|
|
|
+
|
|
public Long getCreateTime() {
|
|
public Long getCreateTime() {
|
|
return createTime;
|
|
return createTime;
|
|
}
|
|
}
|
|
@@ -155,6 +167,7 @@ public class MarkArbitrateHistory implements Serializable {
|
|
public void setCreateTime(Long createTime) {
|
|
public void setCreateTime(Long createTime) {
|
|
this.createTime = createTime;
|
|
this.createTime = createTime;
|
|
}
|
|
}
|
|
|
|
+
|
|
public Long getUpdateTime() {
|
|
public Long getUpdateTime() {
|
|
return updateTime;
|
|
return updateTime;
|
|
}
|
|
}
|
|
@@ -163,22 +176,46 @@ public class MarkArbitrateHistory implements Serializable {
|
|
this.updateTime = updateTime;
|
|
this.updateTime = updateTime;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public List<ScoreItem> getScoreItemList() {
|
|
|
|
+ List<ScoreItem> list = new LinkedList<>();
|
|
|
|
+ if (StringUtils.isNotBlank(scoreList)) {
|
|
|
|
+ try {
|
|
|
|
+ String[] values = scoreList.split(",");
|
|
|
|
+ for (String value : values) {
|
|
|
|
+ if (value.equals("")) {
|
|
|
|
+ list.add(new ScoreItem(false));
|
|
|
|
+ } else {
|
|
|
|
+ ScoreItem item = ScoreItem.parse(value, false);
|
|
|
|
+ if (item != null) {
|
|
|
|
+ list.add(item);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (scoreList.endsWith(",")) {
|
|
|
|
+ list.add(new ScoreItem(false));
|
|
|
|
+ }
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return list;
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public String toString() {
|
|
public String toString() {
|
|
return "MarkArbitrateHistory{" +
|
|
return "MarkArbitrateHistory{" +
|
|
- "id=" + id +
|
|
|
|
- ", examId=" + examId +
|
|
|
|
- ", paperNumber=" + paperNumber +
|
|
|
|
- ", groupNumber=" + groupNumber +
|
|
|
|
- ", studentCode=" + studentCode +
|
|
|
|
- ", secretNumber=" + secretNumber +
|
|
|
|
- ", studentId=" + studentId +
|
|
|
|
- ", status=" + status +
|
|
|
|
- ", updateUserId=" + updateUserId +
|
|
|
|
- ", totalScore=" + totalScore +
|
|
|
|
- ", scoreList=" + scoreList +
|
|
|
|
- ", createTime=" + createTime +
|
|
|
|
- ", updateTime=" + updateTime +
|
|
|
|
- "}";
|
|
|
|
|
|
+ "id=" + id +
|
|
|
|
+ ", examId=" + examId +
|
|
|
|
+ ", paperNumber=" + paperNumber +
|
|
|
|
+ ", groupNumber=" + groupNumber +
|
|
|
|
+ ", studentCode=" + studentCode +
|
|
|
|
+ ", secretNumber=" + secretNumber +
|
|
|
|
+ ", studentId=" + studentId +
|
|
|
|
+ ", status=" + status +
|
|
|
|
+ ", updateUserId=" + updateUserId +
|
|
|
|
+ ", totalScore=" + totalScore +
|
|
|
|
+ ", scoreList=" + scoreList +
|
|
|
|
+ ", createTime=" + createTime +
|
|
|
|
+ ", updateTime=" + updateTime +
|
|
|
|
+ "}";
|
|
}
|
|
}
|
|
}
|
|
}
|