|
@@ -1,9 +1,9 @@
|
|
|
package cn.com.qmth.stmms.ms.core.domain;
|
|
|
|
|
|
+import cn.com.qmth.stmms.ms.core.domain.user.Role;
|
|
|
import cn.com.qmth.stmms.ms.core.vo.Subject;
|
|
|
import org.hibernate.annotations.DynamicInsert;
|
|
|
import org.hibernate.annotations.DynamicUpdate;
|
|
|
-import org.springframework.data.annotation.CreatedDate;
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
import javax.validation.constraints.NotNull;
|
|
@@ -25,7 +25,6 @@ public class MarkLog implements Serializable {
|
|
|
|
|
|
private static final long serialVersionUID = -8376036816154911286L;
|
|
|
|
|
|
- @NotNull
|
|
|
private Long id;
|
|
|
@NotNull
|
|
|
private Long createUserId;
|
|
@@ -33,8 +32,7 @@ public class MarkLog implements Serializable {
|
|
|
private String createUserName;
|
|
|
@NotNull
|
|
|
private String createRole;
|
|
|
- @Enumerated(value = EnumType.STRING)
|
|
|
- private Subject subject;
|
|
|
+ private String subject;
|
|
|
@NotNull
|
|
|
private String examNumber;
|
|
|
@NotNull
|
|
@@ -44,15 +42,13 @@ public class MarkLog implements Serializable {
|
|
|
private Integer operType;
|
|
|
private String operDataBefore;
|
|
|
private String operDataAfter;
|
|
|
- // @Temporal(value = TemporalType.DATE)
|
|
|
- @CreatedDate
|
|
|
+ @Temporal(value = TemporalType.DATE)
|
|
|
@NotNull
|
|
|
private Date createTime;
|
|
|
@NotNull
|
|
|
private Long workId;
|
|
|
@NotNull
|
|
|
private Long paperId;
|
|
|
- @NotNull
|
|
|
private String remark;
|
|
|
@NotNull
|
|
|
@Enumerated(value = EnumType.ORDINAL)
|
|
@@ -62,10 +58,23 @@ public class MarkLog implements Serializable {
|
|
|
|
|
|
}
|
|
|
|
|
|
- public MarkLog(Long createUserId, String createUserName, String createRole,
|
|
|
- MarkSubject subject, String examNumber, String studentName,
|
|
|
- Integer operType, Long workId, Long paperId, String remark) {
|
|
|
-
|
|
|
+ public MarkLog(Long createUserId, String createUserName, Role createRole,
|
|
|
+ Subject subject, String examNumber, String studentName,
|
|
|
+ Integer operType, Long workId, Long paperId, MarkStage stage, String operDataBefore, String operDataAfter, String remark) {
|
|
|
+ this.createUserId = createUserId;
|
|
|
+ this.createUserName = createUserName;
|
|
|
+ this.createRole = createRole.getName();
|
|
|
+ this.subject = subject.toString();
|
|
|
+ this.examNumber = examNumber;
|
|
|
+ this.studentName = studentName;
|
|
|
+ this.operType = operType;
|
|
|
+ this.workId = workId;
|
|
|
+ this.paperId = paperId;
|
|
|
+ this.stage = stage;
|
|
|
+ this.operDataAfter = operDataAfter;
|
|
|
+ this.operDataBefore = operDataBefore;
|
|
|
+ this.remark = remark;
|
|
|
+ this.createTime = new Date();
|
|
|
}
|
|
|
|
|
|
public static long getSerialVersionUID() {
|
|
@@ -123,11 +132,11 @@ public class MarkLog implements Serializable {
|
|
|
|
|
|
@Basic
|
|
|
@Column(name = "subject")
|
|
|
- public Subject getSubject() {
|
|
|
+ public String getSubject() {
|
|
|
return subject;
|
|
|
}
|
|
|
|
|
|
- public void setSubject(Subject subject) {
|
|
|
+ public void setSubject(String subject) {
|
|
|
this.subject = subject;
|
|
|
}
|
|
|
|