|
|
@@ -1,13 +1,15 @@
|
|
|
package com.uas.credit.model;
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
+import java.io.Serializable;
|
|
|
+import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
* created by shicr on 2018/6/8
|
|
|
**/
|
|
|
@Entity
|
|
|
@Table(name = "log$log")
|
|
|
-public class CreditLog {
|
|
|
+public class CreditLog implements Serializable {
|
|
|
|
|
|
/**
|
|
|
* default serialVersionUID
|
|
|
@@ -20,16 +22,24 @@ public class CreditLog {
|
|
|
private Long id;
|
|
|
|
|
|
/**
|
|
|
- * 日志标题
|
|
|
+ * 日志类型
|
|
|
*/
|
|
|
- @Column(name = "log_title")
|
|
|
- private String title;
|
|
|
+ @Column(name = "log_type")
|
|
|
+ private String type;
|
|
|
|
|
|
/**
|
|
|
- * 日志消息
|
|
|
+ * 日志时间
|
|
|
*/
|
|
|
- @Column(name = "log_message")
|
|
|
- private String message;
|
|
|
+ @Column(name = "log_time")
|
|
|
+ private Date queryTime;
|
|
|
+
|
|
|
+ public CreditLog() {
|
|
|
+ }
|
|
|
+
|
|
|
+ public CreditLog(String type, Date queryTime) {
|
|
|
+ this.type = type;
|
|
|
+ this.queryTime = queryTime;
|
|
|
+ }
|
|
|
|
|
|
public Long getId() {
|
|
|
return id;
|
|
|
@@ -39,24 +49,19 @@ public class CreditLog {
|
|
|
this.id = id;
|
|
|
}
|
|
|
|
|
|
- public String getTitle() {
|
|
|
- return title;
|
|
|
- }
|
|
|
-
|
|
|
- public void setTitle(String title) {
|
|
|
- this.title = title;
|
|
|
+ public String getType() {
|
|
|
+ return type;
|
|
|
}
|
|
|
|
|
|
- public String getMessage() {
|
|
|
- return message;
|
|
|
+ public void setType(String type) {
|
|
|
+ this.type = type;
|
|
|
}
|
|
|
|
|
|
- public void setMessage(String message) {
|
|
|
- this.message = message;
|
|
|
+ public Date getQueryTime() {
|
|
|
+ return queryTime;
|
|
|
}
|
|
|
|
|
|
- public CreditLog(String title,String message) {
|
|
|
- this.title = title;
|
|
|
- this.message = message;
|
|
|
+ public void setQueryTime(Date queryTime) {
|
|
|
+ this.queryTime = queryTime;
|
|
|
}
|
|
|
}
|