SchedulePlanInfo.java
6.51 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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
package com.bsth.entity.schedule;
import com.bsth.entity.sys.SysUser;
import javax.persistence.*;
import java.util.Date;
/**
* 排班计划明细。
* 内部字段全冗余,无关联对象(外键关联关系),
* 可以单独存在,其余表要关联此对象/表,必须使用中间对象/表。
*/
@Entity
@Table(name = "bsth_c_s_sp_info")
public class SchedulePlanInfo {
/** 主键Id */
@Id
@GeneratedValue
private Long id;
/** 排班计划日期 */
private Date scheduleDate;
/** 路牌名称 */
private String lpName;
/** 线路编码 */
private String xlBm;
/** 线路名称 */
private String xlName;
/** 车辆自编号 */
private String clZbh;
/** 报道1时间(格式 HH:mm) */
private String bd1Time;
/** 出场1时间(格式 HH:mm) */
private String cc1Time;
/** 驾驶员1工号 */
private String j1Gh;
/** 驾驶员1名字 */
private String j1Name;
/** 售票员1工号 */
private String s1Gh;
/** 售票员1名字 */
private String s1Name;
/** 报道2时间(格式 HH:mm) */
private String bd2Time;
/** 出场2时间(格式 HH:mm) */
private String cc2Time;
/** 驾驶员2工号 */
private String j2Gh;
/** 驾驶员2名字 */
private String j2Name;
/** 售票员2工号 */
private String s2Gh;
/** 售票员2名字 */
private String s2Name;
// 冗余的时刻明细信息
/** 线路方向 */
private String xlDir;
/** 起点站名称 */
private String qdz;
/** 终点站名称 */
private String zdz;
/** 发车时间(格式 HH:mm) */
private String fcsj;
/** 发车顺序号 */
private int fcno;
/** 对应班次数 */
private int bcs;
/** 计划里程 */
private double jhlc;
/** 班次历时 */
private int bcsj;
/** 操作人 */
@ManyToOne(optional = false, cascade = CascadeType.PERSIST, fetch = FetchType.LAZY)
private SysUser user;
// 创建日期
@Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
private Date createDate;
// 修改日期
@Column(name = "update_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
private Date updateDate;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Date getScheduleDate() {
return scheduleDate;
}
public void setScheduleDate(Date scheduleDate) {
this.scheduleDate = scheduleDate;
}
public String getLpName() {
return lpName;
}
public void setLpName(String lpName) {
this.lpName = lpName;
}
public String getXlName() {
return xlName;
}
public void setXlName(String xlName) {
this.xlName = xlName;
}
public String getClZbh() {
return clZbh;
}
public void setClZbh(String clZbh) {
this.clZbh = clZbh;
}
public String getCc1Time() {
return cc1Time;
}
public void setCc1Time(String cc1Time) {
this.cc1Time = cc1Time;
}
public String getJ1Gh() {
return j1Gh;
}
public void setJ1Gh(String j1Gh) {
this.j1Gh = j1Gh;
}
public String getJ1Name() {
return j1Name;
}
public void setJ1Name(String j1Name) {
this.j1Name = j1Name;
}
public String getS1Gh() {
return s1Gh;
}
public void setS1Gh(String s1Gh) {
this.s1Gh = s1Gh;
}
public String getS1Name() {
return s1Name;
}
public void setS1Name(String s1Name) {
this.s1Name = s1Name;
}
public String getBd1Time() {
return bd1Time;
}
public void setBd1Time(String bd1Time) {
this.bd1Time = bd1Time;
}
public String getBd2Time() {
return bd2Time;
}
public void setBd2Time(String bd2Time) {
this.bd2Time = bd2Time;
}
public String getCc2Time() {
return cc2Time;
}
public void setCc2Time(String cc2Time) {
this.cc2Time = cc2Time;
}
public String getJ2Gh() {
return j2Gh;
}
public void setJ2Gh(String j2Gh) {
this.j2Gh = j2Gh;
}
public String getJ2Name() {
return j2Name;
}
public void setJ2Name(String j2Name) {
this.j2Name = j2Name;
}
public String getS2Gh() {
return s2Gh;
}
public void setS2Gh(String s2Gh) {
this.s2Gh = s2Gh;
}
public String getS2Name() {
return s2Name;
}
public void setS2Name(String s2Name) {
this.s2Name = s2Name;
}
public String getXlDir() {
return xlDir;
}
public void setXlDir(String xlDir) {
this.xlDir = xlDir;
}
public String getQdz() {
return qdz;
}
public void setQdz(String qdz) {
this.qdz = qdz;
}
public String getZdz() {
return zdz;
}
public void setZdz(String zdz) {
this.zdz = zdz;
}
public String getFcsj() {
return fcsj;
}
public void setFcsj(String fcsj) {
this.fcsj = fcsj;
}
public SysUser getUser() {
return user;
}
public void setUser(SysUser user) {
this.user = user;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public int getFcno() {
return fcno;
}
public void setFcno(int fcno) {
this.fcno = fcno;
}
public int getBcs() {
return bcs;
}
public void setBcs(int bcs) {
this.bcs = bcs;
}
public double getJhlc() {
return jhlc;
}
public void setJhlc(double jhlc) {
this.jhlc = jhlc;
}
public int getBcsj() {
return bcsj;
}
public void setBcsj(int bcsj) {
this.bcsj = bcsj;
}
public String getXlBm() {
return xlBm;
}
public void setXlBm(String xlBm) {
this.xlBm = xlBm;
}
}