|
@@ -8,6 +8,8 @@ import com.qmth.themis.business.enums.EncryptModeEnum;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
|
|
|
+import java.util.Objects;
|
|
|
+
|
|
|
/**
|
|
|
* @Description: 考试试卷
|
|
|
* @Param:
|
|
@@ -19,22 +21,22 @@ import io.swagger.annotations.ApiModelProperty;
|
|
|
public class TEExamPaper extends BaseEntity {
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
- */
|
|
|
- private static final long serialVersionUID = -3182356952124087406L;
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private static final long serialVersionUID = -3182356952124087406L;
|
|
|
|
|
|
- @ApiModelProperty(value = "试卷名称")
|
|
|
+ @ApiModelProperty(value = "试卷名称")
|
|
|
@TableField(value = "name")
|
|
|
private String name;
|
|
|
|
|
|
@ApiModelProperty(value = "试卷总分")
|
|
|
@TableField(value = "total_score")
|
|
|
private Double totalScore;
|
|
|
-
|
|
|
+
|
|
|
@ApiModelProperty(value = "试卷客观题总分")
|
|
|
@TableField(value = "total_objective_score")
|
|
|
private Double totalObjectiveScore;
|
|
|
-
|
|
|
+
|
|
|
@ApiModelProperty(value = "试卷主观题总分")
|
|
|
@TableField(value = "total_subjective_score")
|
|
|
private Double totalSubjectiveScore;
|
|
@@ -46,7 +48,7 @@ public class TEExamPaper extends BaseEntity {
|
|
|
@ApiModelProperty(value = "题干md5")
|
|
|
@TableField(value = "paper_md5")
|
|
|
private String paperMd5;
|
|
|
-
|
|
|
+
|
|
|
@ApiModelProperty(value = "阅卷用试卷json路径")
|
|
|
@TableField(value = "paper_view_path")
|
|
|
private String paperViewPath;
|
|
@@ -224,29 +226,29 @@ public class TEExamPaper extends BaseEntity {
|
|
|
this.audioPlayCount = audioPlayCount;
|
|
|
}
|
|
|
|
|
|
- public String getPaperViewPath() {
|
|
|
- return paperViewPath;
|
|
|
- }
|
|
|
+ public String getPaperViewPath() {
|
|
|
+ return paperViewPath;
|
|
|
+ }
|
|
|
|
|
|
- public void setPaperViewPath(String paperViewPath) {
|
|
|
- this.paperViewPath = paperViewPath;
|
|
|
- }
|
|
|
+ public void setPaperViewPath(String paperViewPath) {
|
|
|
+ this.paperViewPath = paperViewPath;
|
|
|
+ }
|
|
|
|
|
|
- public Double getTotalObjectiveScore() {
|
|
|
- return totalObjectiveScore;
|
|
|
- }
|
|
|
+ public Double getTotalObjectiveScore() {
|
|
|
+ return totalObjectiveScore;
|
|
|
+ }
|
|
|
|
|
|
- public void setTotalObjectiveScore(Double totalObjectiveScore) {
|
|
|
- this.totalObjectiveScore = totalObjectiveScore;
|
|
|
- }
|
|
|
+ public void setTotalObjectiveScore(Double totalObjectiveScore) {
|
|
|
+ this.totalObjectiveScore = totalObjectiveScore;
|
|
|
+ }
|
|
|
|
|
|
- public Double getTotalSubjectiveScore() {
|
|
|
- return totalSubjectiveScore;
|
|
|
- }
|
|
|
+ public Double getTotalSubjectiveScore() {
|
|
|
+ return totalSubjectiveScore;
|
|
|
+ }
|
|
|
|
|
|
- public void setTotalSubjectiveScore(Double totalSubjectiveScore) {
|
|
|
- this.totalSubjectiveScore = totalSubjectiveScore;
|
|
|
- }
|
|
|
+ public void setTotalSubjectiveScore(Double totalSubjectiveScore) {
|
|
|
+ this.totalSubjectiveScore = totalSubjectiveScore;
|
|
|
+ }
|
|
|
|
|
|
public static long getSerialVersionUID() {
|
|
|
return serialVersionUID;
|
|
@@ -267,4 +269,23 @@ public class TEExamPaper extends BaseEntity {
|
|
|
public void setStructMd5(String structMd5) {
|
|
|
this.structMd5 = structMd5;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean equals(Object o) {
|
|
|
+ if (this == o) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (o == null || getClass() != o.getClass()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ TEExamPaper that = (TEExamPaper) o;
|
|
|
+ return Objects.equals(name, that.name) && Objects.equals(totalScore, that.totalScore) && Objects.equals(totalObjectiveScore, that.totalObjectiveScore) && Objects.equals(totalSubjectiveScore, that.totalSubjectiveScore) && Objects.equals(paperPath, that.paperPath) && Objects.equals(paperMd5, that.paperMd5) && Objects.equals(paperViewPath, that.paperViewPath) && Objects.equals(decryptSecret, that.decryptSecret) && encryptMode == that.encryptMode && Objects.equals(needVoiceAnswer, that.needVoiceAnswer) && Objects.equals(examId, that.examId) && Objects.equals(courseCode, that.courseCode) && Objects.equals(code, that.code) && Objects.equals(answerPath, that.answerPath) && Objects.equals(hasAudio, that.hasAudio) && Objects.equals(weight, that.weight) && Objects.equals(audioPlayCount, that.audioPlayCount) && Objects.equals(structPath, that.structPath) && Objects.equals(structMd5, that.structMd5) && Objects.equals(decryptVector, that.decryptVector);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int hashCode() {
|
|
|
+ return Objects.hash(name, totalScore, totalObjectiveScore, totalSubjectiveScore, paperPath, paperMd5, paperViewPath, decryptSecret, encryptMode, needVoiceAnswer, examId, courseCode, code, answerPath, hasAudio, weight, audioPlayCount, structPath, structMd5, decryptVector);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|