XklAdminOpsEntity.java
1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package com.xkl.domain;
import lombok.Data;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* @author zhaoyue
*/
@Data
@Entity
@Table(name = "xkl_admin_ops")
public class XklAdminOpsEntity {
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
@Basic
@Column(name = "admin_id")
private long adminId;
@Basic
@Column(name = "member_id")
private long memberId;
@Basic
@Column(name = "time")
private Timestamp time;// 操作时间
@Basic
@Column(name = "operation")
private int operation;// 操作。0 新用户注册;1 体检; 2 老用户引导; 3 问诊;
public XklAdminOpsEntity(long adminId, long memberId, int operation) {
this.adminId = adminId;
this.memberId = memberId;
this.operation = operation;
this.time = new Timestamp(System.currentTimeMillis());
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public long getAdminId() {
return adminId;
}
public void setAdminId(long adminId) {
this.adminId = adminId;
}
public long getMemberId() {
return memberId;
}
public void setMemberId(long memberId) {
this.memberId = memberId;
}
public Timestamp getTime() {
return time;
}
public void setTime(Timestamp time) {
this.time = time;
}
public int getOperation() {
return operation;
}
public void setOperation(int operation) {
this.operation = operation;
}
}