ElecInfo.java
1.66 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
103
104
105
package com.bsth.entity;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* 电量信息表
*/
@Entity
@Table(name = "bsth_c_dlb")
public class ElecInfo implements Serializable {
@Id
private Integer id;
/**
* 日期
*/
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date rq;
/**
* 内部编码
*/
private String nbbm;
/**
* 驾驶员
*/
private String jsy;
/**
* 充电量
*/
private Double cdl;
/**
* 耗电
*/
private Double hd;
@Override
public int hashCode() {
return this.toString().hashCode();
}
@Override
public boolean equals(Object obj) {
return this.toString().equals(((ElecInfo)obj).toString());
}
@Override
public String toString() {
return "oil_" + this.id;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Date getRq() {
return rq;
}
public void setRq(Date rq) {
this.rq = rq;
}
public String getNbbm() {
return nbbm;
}
public void setNbbm(String nbbm) {
this.nbbm = nbbm;
}
public String getJsy() {
return jsy;
}
public void setJsy(String jsy) {
this.jsy = jsy;
}
public Double getCdl() {
return cdl;
}
public void setCdl(Double cdl) {
this.cdl = cdl;
}
public Double getHd() {
return hd;
}
public void setHd(Double hd) {
this.hd = hd;
}
}