ActionDetail.java
2.23 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package cn.com.glsx.auditstatistics.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* 设备行为明细表(TDeviceActionDetail)实体类
*
* @author makejava
* @since 2021-01-02 11:47:34
*/
@Table(name = "t_device_action_detail")
public class ActionDetail implements Serializable {
private static final long serialVersionUID = -89738826135230589L;
/**
* id
*/
@Id
private Integer id;
/**
* 设备号
*/
@Column(name = "device_sn")
private String deviceSn;
/**
* 设备类型 1 - OBD 2 - 车机 12134 - 后视镜 6 - 记录仪 12010 - 其他
*/
@Column(name = "device_type")
private Integer deviceType;
/**
* 行为类型
*/
@Column(name = "type")
private Integer type;
/**
* 创建时间
*/
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Column(name = "create_time")
private Date createTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getDeviceSn() {
return deviceSn;
}
public void setDeviceSn(String deviceSn) {
this.deviceSn = deviceSn;
}
public Integer getDeviceType() {
return deviceType;
}
public void setDeviceType(Integer deviceType) {
this.deviceType = deviceType;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Override
public String toString() {
return "DeviceActionDetail{" +
"id=" + id +
", deviceSn='" + deviceSn + '\'' +
", deviceType=" + deviceType +
", type='" + type + '\'' +
", createTime=" + createTime +
'}';
}
}