MaintenancePlan.java
1.96 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
106
107
108
109
110
111
112
113
package com.bsth.data.maintenance_plan;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* 维修保养计划
* @author Hill
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class MaintenancePlan {
/**
* 线路编码
*/
private String line;
/**
* 线路名称
*/
private String lineName;
/**
* 公司名称
*/
private String gsmc;
/**
* 自编号
*/
private String zbh;
/**
* 保养时间
*/
private long bysj;
/**
* 保养等级
*/
private String bydj;
/**
* 保养地点
*/
private String bydd;
@Override
public int hashCode() {
return ("mt_" + (this.getZbh() + this.getBysj())).hashCode();
}
@Override
public boolean equals(Object obj) {
MaintenancePlan s2 = (MaintenancePlan)obj;
return (this.getZbh() + this.getBysj()).equals(s2.getZbh() + s2.getBysj());
}
public String getLine() {
return line;
}
public void setLine(String line) {
this.line = line;
}
public String getLineName() {
return lineName;
}
public void setLineName(String lineName) {
this.lineName = lineName;
}
public String getGsmc() {
return gsmc;
}
public void setGsmc(String gcmc) {
this.gsmc = gcmc;
}
public String getZbh() {
return zbh;
}
public void setZbh(String zbh) {
this.zbh = zbh;
}
public long getBysj() {
return bysj;
}
public void setBysj(long bysj) {
this.bysj = bysj;
}
public String getBydj() {
return bydj;
}
public void setBydj(String bydj) {
this.bydj = bydj;
}
public String getBydd() {
return bydd;
}
public void setBydd(String bydd) {
this.bydd = bydd;
}
}