ChildTaskPlan.java
4.07 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
package com.bsth.entity.realcontrol;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.NamedAttributeNode;
import javax.persistence.NamedEntityGraph;
import javax.persistence.NamedEntityGraphs;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
*
* @ClassName: ChildTaskPlan
* @Description: TODO(子任务)
* @author PanZhao
* @date 2016年6月20日 上午11:22:22
*
*/
@Entity
@Table(name = "bsth_c_s_child_task")
@NamedEntityGraphs({
@NamedEntityGraph(name = "childTaskPlan_schedule", attributeNodes = {
@NamedAttributeNode("schedule")
})
})
public class ChildTaskPlan {
@Id
@GeneratedValue
private Long id;
/**
* 任务类型1
* 正常,临加
*/
private String type1;
/**
* 任务类型2
*/
private String type2;
/**
* 起点
*/
private String startStation;
/**
* 起点站名称
*/
private String startStationName;
/**
* 终点
*/
private String endStation;
/**
* 终点站名称
*/
private String endStationName;
/**
* 里程类型
*/
private String mileageType;
/**
* 里程
*/
private Float mileage;
/**
* 开始时间 HH:mm
*/
private String startDate;
/**
* 结束时间 HH:mm
*/
private String endDate;
/**
* 是否烂班
*/
private boolean destroy;
/**
* 烂班原因
*/
private String destroyReason;
/**
* 主排班计划
*/
@JsonIgnore
@ManyToOne(fetch = FetchType.LAZY)
private ScheduleRealInfo schedule;
private String remarks;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getType1() {
return type1;
}
public void setType1(String type1) {
this.type1 = type1;
}
public String getType2() {
return type2;
}
public void setType2(String type2) {
this.type2 = type2;
}
public String getStartStation() {
return startStation;
}
public void setStartStation(String startStation) {
this.startStation = startStation;
}
public String getEndStation() {
return endStation;
}
public void setEndStation(String endStation) {
this.endStation = endStation;
}
public String getMileageType() {
return mileageType;
}
public void setMileageType(String mileageType) {
this.mileageType = mileageType;
}
public Float getMileage() {
return mileage;
}
public void setMileage(Float mileage) {
this.mileage = mileage;
}
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public boolean isDestroy() {
return destroy;
}
public void setDestroy(boolean destroy) {
this.destroy = destroy;
}
public String getDestroyReason() {
return destroyReason;
}
public void setDestroyReason(String destroyReason) {
this.destroyReason = destroyReason;
}
public ScheduleRealInfo getSchedule() {
return schedule;
}
public void setSchedule(ScheduleRealInfo schedule) {
this.schedule = schedule;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public String getStartStationName() {
return startStationName;
}
public void setStartStationName(String startStationName) {
this.startStationName = startStationName;
}
public String getEndStationName() {
return endStationName;
}
public void setEndStationName(String endStationName) {
this.endStationName = endStationName;
}
@Override
public int hashCode() {
return ("" + this.getId() + this.getSchedule().getId()).hashCode();
}
@Override
public boolean equals(Object obj) {
return this.id.equals(((ChildTaskPlan)obj).getId());
}
}