|
@@ -1,5 +1,6 @@
|
|
package edu.math.diagnosis.entity;
|
|
package edu.math.diagnosis.entity;
|
|
|
|
|
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import org.hibernate.annotations.CreationTimestamp;
|
|
import org.hibernate.annotations.CreationTimestamp;
|
|
|
|
|
|
@@ -12,6 +13,7 @@ import java.util.Date;
|
|
* @DESCRIPTION: 对应一份试卷的成绩
|
|
* @DESCRIPTION: 对应一份试卷的成绩
|
|
*/
|
|
*/
|
|
@Entity
|
|
@Entity
|
|
|
|
+@ApiModel("考试结果")
|
|
public class PaperResult {
|
|
public class PaperResult {
|
|
@Id
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
@@ -20,7 +22,7 @@ public class PaperResult {
|
|
private Double score;
|
|
private Double score;
|
|
private String name;//考生姓名
|
|
private String name;//考生姓名
|
|
@Column(nullable = false)
|
|
@Column(nullable = false)
|
|
- private String uid;
|
|
|
|
|
|
+ private Long uid;
|
|
@Column(nullable = false)
|
|
@Column(nullable = false)
|
|
private Long pid;
|
|
private Long pid;
|
|
|
|
|
|
@@ -32,7 +34,6 @@ public class PaperResult {
|
|
private Date createtime;
|
|
private Date createtime;
|
|
|
|
|
|
@Lob
|
|
@Lob
|
|
- @Column(nullable = false)
|
|
|
|
@ApiModelProperty("json化的试卷分数")
|
|
@ApiModelProperty("json化的试卷分数")
|
|
private String jsonScore;
|
|
private String jsonScore;
|
|
|
|
|
|
@@ -44,7 +45,6 @@ public class PaperResult {
|
|
* 1,2
|
|
* 1,2
|
|
*/
|
|
*/
|
|
@Lob
|
|
@Lob
|
|
- @Column(nullable = false)
|
|
|
|
@ApiModelProperty("答对的题目编号 1,2")
|
|
@ApiModelProperty("答对的题目编号 1,2")
|
|
private String collectQuestion;
|
|
private String collectQuestion;
|
|
|
|
|
|
@@ -140,11 +140,11 @@ public class PaperResult {
|
|
this.name = name;
|
|
this.name = name;
|
|
}
|
|
}
|
|
|
|
|
|
- public String getUid() {
|
|
|
|
|
|
+ public Long getUid() {
|
|
return uid;
|
|
return uid;
|
|
}
|
|
}
|
|
|
|
|
|
- public void setUid(String uid) {
|
|
|
|
|
|
+ public void setUid(Long uid) {
|
|
this.uid = uid;
|
|
this.uid = uid;
|
|
}
|
|
}
|
|
|
|
|