Commit 2dc00ac1743db0892c09d16d1479dc341a2a4539

Authored by 王通
1 parent 5b0120e1

1.新的票务接口

src/main/java/com/bsth/CXFConfig.java
@@ -16,6 +16,7 @@ import com.bsth.server_rs.logs.RealLogRestService; @@ -16,6 +16,7 @@ import com.bsth.server_rs.logs.RealLogRestService;
16 import com.bsth.server_rs.schedule.plan.SchedulePlanService; 16 import com.bsth.server_rs.schedule.plan.SchedulePlanService;
17 import com.bsth.server_rs.schedule.real.ScheduleRealService; 17 import com.bsth.server_rs.schedule.real.ScheduleRealService;
18 import com.bsth.server_rs.schedule.real.StaffViewRealService; 18 import com.bsth.server_rs.schedule.real.StaffViewRealService;
  19 +import com.bsth.server_rs.waybill.WaybillRestService;
19 import com.bsth.server_ws.attendance.AttendanceServiceSoap; 20 import com.bsth.server_ws.attendance.AttendanceServiceSoap;
20 import com.bsth.server_ws.electric_oil.OilServiceSoap; 21 import com.bsth.server_ws.electric_oil.OilServiceSoap;
21 import com.bsth.server_ws.park_station.CompanyServiceSoap; 22 import com.bsth.server_ws.park_station.CompanyServiceSoap;
@@ -101,6 +102,8 @@ public class CXFConfig { @@ -101,6 +102,8 @@ public class CXFConfig {
101 @Autowired 102 @Autowired
102 GpsRestService gpsRestService; 103 GpsRestService gpsRestService;
103 @Autowired 104 @Autowired
  105 + WaybillRestService waybillRestService;
  106 + @Autowired
104 DirectiveRestService directiveRestService; 107 DirectiveRestService directiveRestService;
105 @Autowired 108 @Autowired
106 LD_RoadSpeedRestService ld_roadSpeedRestService; 109 LD_RoadSpeedRestService ld_roadSpeedRestService;
@@ -121,6 +124,7 @@ public class CXFConfig { @@ -121,6 +124,7 @@ public class CXFConfig {
121 new CarRestService(), 124 new CarRestService(),
122 new PersonRestService(), 125 new PersonRestService(),
123 gpsRestService, 126 gpsRestService,
  127 + waybillRestService,
124 scheduleRealService, 128 scheduleRealService,
125 stationRestService, 129 stationRestService,
126 ldSectionRestService, 130 ldSectionRestService,
src/main/java/com/bsth/entity/ScheduleRealInfo.java
1 -package com.bsth.entity;  
2 -  
3 -import org.joda.time.format.DateTimeFormat;  
4 -import org.joda.time.format.DateTimeFormatter;  
5 -  
6 -import javax.persistence.*;  
7 -import java.io.Serializable;  
8 -import java.util.Date;  
9 -import java.util.HashSet;  
10 -import java.util.Set;  
11 -  
12 -/**  
13 - * 实际排班计划明细。  
14 - */  
15 -@Entity  
16 -@Table(name = "bsth_c_s_sp_info_real")  
17 -@NamedEntityGraphs({  
18 - @NamedEntityGraph(name = "scheduleRealInfo_cTasks", attributeNodes = {  
19 - @NamedAttributeNode("cTasks")  
20 - })  
21 -})  
22 -public class ScheduleRealInfo implements Serializable{  
23 -  
24 -  
25 -  
26 - /** 主键Id */  
27 - @Id  
28 - private Long id;  
29 -  
30 - /** 计划ID */  
31 - private Long spId;  
32 -  
33 - /** 排班计划日期 */  
34 - private Date scheduleDate;  
35 - private String scheduleDateStr;  
36 -  
37 - /** 真实执行时间 yyyy-MM-dd */  
38 - private String realExecDate;  
39 -  
40 - /** 线路名称 */  
41 - private String xlName;  
42 - /** 线路编码 */  
43 - private String xlBm;  
44 -  
45 - /** 路牌名称 */  
46 - private String lpName;  
47 -  
48 - /** 车辆自编号 */  
49 - private String clZbh;  
50 -  
51 - /** 驾驶员工号 */  
52 - private String jGh;  
53 - /** 驾驶员名字 */  
54 - private String jName;  
55 - /** 售票员工号 */  
56 - private String sGh;  
57 - /** 售票员名字 */  
58 - private String sName;  
59 -  
60 - /** 线路方向 */  
61 - private String xlDir;  
62 - /** 起点站code*/  
63 - private String qdzCode;  
64 - /** 起点站名字 */  
65 - private String qdzName;  
66 -  
67 - /** 终点站code*/  
68 - private String zdzCode;  
69 - /** 终点站名字 */  
70 - private String zdzName;  
71 -  
72 - /** 计划发车时间(格式 HH:mm) */  
73 - private String fcsj;  
74 - /** 计划发车时间戳*/  
75 - @Transient  
76 - private Long fcsjT;  
77 -  
78 - /** 计划终点时间(格式 HH:mm) */  
79 - private String zdsj;  
80 - /** 计划终点时间戳*/  
81 - @Transient  
82 - private Long zdsjT;  
83 -  
84 - /** 发车顺序号 */  
85 - private Integer fcno;  
86 - /** 对应班次数 */  
87 - private Integer bcs;  
88 - /** 计划里程 */  
89 - private Double jhlc;  
90 -  
91 - /** 原始计划里程 (原计调的数据) */  
92 - private Double jhlcOrig;  
93 -  
94 - /** 班次历时 */  
95 - private Integer bcsj;  
96 -  
97 - /**  
98 - * 班次类型 TODO:正常班次、出场、进场、加油、区间班次、放空班次、放大站班次、两点间空驶  
99 - */  
100 - private String bcType;  
101 -  
102 - /** 创建日期 */  
103 - @Column(name = "create_date")  
104 - private Date createDate;  
105 - /** 修改日期 */  
106 - @Column(name = "update_date")  
107 - private Date updateDate;  
108 -  
109 - /** 实际发车时间*/  
110 - private String fcsjActual;  
111 - /** 实际发车时间戳*/  
112 - @Transient  
113 - private Long fcsjActualTime;  
114 - /**实际终点时间 */  
115 - private String zdsjActual;  
116 - /** 实际终点时间戳*/  
117 - @Transient  
118 - private Long zdsjActualTime;  
119 -  
120 - /**班次状态 0 未执行 1 正在执行 2 已执行 -1 已烂班 */  
121 - private int status;  
122 -  
123 - private String adjustExps;  
124 -  
125 - /** 是否是临加班次 */  
126 - private boolean sflj;  
127 -  
128 - /** 是否误点*/  
129 - @Transient  
130 - private boolean late;  
131 -  
132 - /** 备注*/  
133 - private String remarks;  
134 -  
135 - /**待发时间(格式 HH:mm) */  
136 - private String dfsj;  
137 -  
138 - /**待发时间戳 */  
139 - @Transient  
140 - private Long dfsjT;  
141 -  
142 - /** 指令下发状态 60: 已发送, 100: 设备确认收到, 200:驾驶员确认 0:失败 */  
143 - private Integer directiveState = -1;  
144 -  
145 - /** 起点站计划到达时间 */  
146 - @Transient  
147 - private String qdzArrDatejh;  
148 -  
149 - /** 起点站实际到达时间 */  
150 - @Transient  
151 - private String qdzArrDatesj;  
152 -  
153 - /** 子任务 */  
154 - @OneToMany(fetch = FetchType.LAZY, mappedBy = "schedule")  
155 - private Set<ChildTaskPlan> cTasks = new HashSet<>();  
156 -  
157 - /** 关联的公司名称 */  
158 - private String gsName;  
159 - /** 关联的公司编码 */  
160 - private String gsBm;  
161 - /** 关联的分公司名称 */  
162 - private String fgsName;  
163 - /** 关联的分公司编码 */  
164 - private String fgsBm;  
165 - /** 出场顺序号 */  
166 - private Integer ccno;  
167 -  
168 - //待发调试(是否自动调整)  
169 - private boolean dfAuto;  
170 - //是否有GPS信号  
171 - private boolean online;  
172 -  
173 - /** 是否有补发GPS信号 */  
174 - private boolean reissue;  
175 -  
176 - @Override  
177 - public int hashCode() {  
178 - return (this.id + this.scheduleDateStr + this.xlBm + this.fcsj).hashCode();  
179 - }  
180 -  
181 - @Override  
182 - public boolean equals(Object obj) {  
183 - return this.id.equals(((ScheduleRealInfo)obj).getId());  
184 - }  
185 -  
186 - public Long getId() {  
187 - return id;  
188 - }  
189 -  
190 - public void setId(Long id) {  
191 - this.id = id;  
192 - }  
193 -  
194 - public Long getSpId() {  
195 - return spId;  
196 - }  
197 -  
198 - public void setSpId(Long spId) {  
199 - this.spId = spId;  
200 - }  
201 -  
202 - public Date getScheduleDate() {  
203 - return scheduleDate;  
204 - }  
205 -  
206 - public void setScheduleDate(Date scheduleDate) {  
207 - this.scheduleDate = scheduleDate;  
208 - }  
209 -  
210 - public String getScheduleDateStr() {  
211 - return scheduleDateStr;  
212 - }  
213 -  
214 - public void setScheduleDateStr(String scheduleDateStr) {  
215 - this.scheduleDateStr = scheduleDateStr;  
216 - }  
217 -  
218 - public String getRealExecDate() {  
219 - return realExecDate;  
220 - }  
221 -  
222 - public void setRealExecDate(String realExecDate) {  
223 - this.realExecDate = realExecDate;  
224 - }  
225 -  
226 - public String getXlName() {  
227 - return xlName;  
228 - }  
229 -  
230 - public void setXlName(String xlName) {  
231 - this.xlName = xlName;  
232 - }  
233 -  
234 - public String getXlBm() {  
235 - return xlBm;  
236 - }  
237 -  
238 - public void setXlBm(String xlBm) {  
239 - this.xlBm = xlBm;  
240 - }  
241 -  
242 - public String getLpName() {  
243 - return lpName;  
244 - }  
245 -  
246 - public void setLpName(String lpName) {  
247 - this.lpName = lpName;  
248 - }  
249 -  
250 - public String getClZbh() {  
251 - return clZbh;  
252 - }  
253 -  
254 - public void setClZbh(String clZbh) {  
255 - this.clZbh = clZbh;  
256 - }  
257 -  
258 - public String getjGh() {  
259 - return jGh;  
260 - }  
261 -  
262 - public void setjGh(String jGh) {  
263 - this.jGh = jGh;  
264 - }  
265 -  
266 - public String getjName() {  
267 - return jName;  
268 - }  
269 -  
270 - public void setjName(String jName) {  
271 - this.jName = jName;  
272 - }  
273 -  
274 - public String getsGh() {  
275 - return sGh;  
276 - }  
277 -  
278 - public void setsGh(String sGh) {  
279 - this.sGh = sGh;  
280 - }  
281 -  
282 - public String getsName() {  
283 - return sName;  
284 - }  
285 -  
286 - public void setsName(String sName) {  
287 - this.sName = sName;  
288 - }  
289 -  
290 - public String getXlDir() {  
291 - return xlDir;  
292 - }  
293 -  
294 - public void setXlDir(String xlDir) {  
295 - this.xlDir = xlDir;  
296 - }  
297 -  
298 - public String getQdzCode() {  
299 - return qdzCode;  
300 - }  
301 -  
302 - public void setQdzCode(String qdzCode) {  
303 - this.qdzCode = qdzCode;  
304 - }  
305 -  
306 - public String getQdzName() {  
307 - return qdzName;  
308 - }  
309 -  
310 - public void setQdzName(String qdzName) {  
311 - this.qdzName = qdzName;  
312 - }  
313 -  
314 - public String getZdzCode() {  
315 - return zdzCode;  
316 - }  
317 -  
318 - public void setZdzCode(String zdzCode) {  
319 - this.zdzCode = zdzCode;  
320 - }  
321 -  
322 - public String getZdzName() {  
323 - return zdzName;  
324 - }  
325 -  
326 - public void setZdzName(String zdzName) {  
327 - this.zdzName = zdzName;  
328 - }  
329 -  
330 - public String getFcsj() {  
331 - return fcsj;  
332 - }  
333 -  
334 - public void setFcsj(String fcsj) {  
335 - this.fcsj = fcsj;  
336 - }  
337 -  
338 - public Long getFcsjT() {  
339 - return fcsjT;  
340 - }  
341 -  
342 - public void setFcsjT(Long fcsjT) {  
343 - this.fcsjT = fcsjT;  
344 - }  
345 -  
346 - public String getZdsj() {  
347 - return zdsj;  
348 - }  
349 -  
350 - public void setZdsj(String zdsj) {  
351 - this.zdsj = zdsj;  
352 - }  
353 -  
354 - public Long getZdsjT() {  
355 - return zdsjT;  
356 - }  
357 -  
358 - public void setZdsjT(Long zdsjT) {  
359 - this.zdsjT = zdsjT;  
360 - }  
361 -  
362 - public Integer getFcno() {  
363 - return fcno;  
364 - }  
365 -  
366 - public void setFcno(Integer fcno) {  
367 - this.fcno = fcno;  
368 - }  
369 -  
370 - public Integer getBcs() {  
371 - return bcs;  
372 - }  
373 -  
374 - public void setBcs(Integer bcs) {  
375 - this.bcs = bcs;  
376 - }  
377 -  
378 - public Double getJhlc() {  
379 - return jhlc;  
380 - }  
381 -  
382 - public void setJhlc(Double jhlc) {  
383 - this.jhlc = jhlc;  
384 - }  
385 -  
386 - public Integer getBcsj() {  
387 - return bcsj;  
388 - }  
389 -  
390 - public void setBcsj(Integer bcsj) {  
391 - this.bcsj = bcsj;  
392 - }  
393 -  
394 - public String getBcType() {  
395 - return bcType;  
396 - }  
397 -  
398 - public void setBcType(String bcType) {  
399 - this.bcType = bcType;  
400 - }  
401 -  
402 - public Date getCreateDate() {  
403 - return createDate;  
404 - }  
405 -  
406 - public void setCreateDate(Date createDate) {  
407 - this.createDate = createDate;  
408 - }  
409 -  
410 - public Date getUpdateDate() {  
411 - return updateDate;  
412 - }  
413 -  
414 - public void setUpdateDate(Date updateDate) {  
415 - this.updateDate = updateDate;  
416 - }  
417 -  
418 - public String getFcsjActual() {  
419 - return fcsjActual;  
420 - }  
421 -  
422 - public void setFcsjActual(String fcsjActual) {  
423 - this.fcsjActual = fcsjActual;  
424 - }  
425 -  
426 - public Long getFcsjActualTime() {  
427 - return fcsjActualTime;  
428 - }  
429 -  
430 - public void setFcsjActualTime(Long fcsjActualTime) {  
431 - this.fcsjActualTime = fcsjActualTime;  
432 - }  
433 -  
434 - public String getZdsjActual() {  
435 - return zdsjActual;  
436 - }  
437 -  
438 - public void setZdsjActual(String zdsjActual) {  
439 - this.zdsjActual = zdsjActual;  
440 - }  
441 -  
442 - public Long getZdsjActualTime() {  
443 - return zdsjActualTime;  
444 - }  
445 -  
446 - public void setZdsjActualTime(Long zdsjActualTime) {  
447 - this.zdsjActualTime = zdsjActualTime;  
448 - }  
449 -  
450 - public int getStatus() {  
451 - return status;  
452 - }  
453 -  
454 - public void setStatus(int status) {  
455 - this.status = status;  
456 - }  
457 -  
458 - public String getAdjustExps() {  
459 - return adjustExps;  
460 - }  
461 -  
462 - public void setAdjustExps(String adjustExps) {  
463 - this.adjustExps = adjustExps;  
464 - }  
465 -  
466 - public boolean isSflj() {  
467 - return sflj;  
468 - }  
469 -  
470 - public void setSflj(boolean sflj) {  
471 - this.sflj = sflj;  
472 - }  
473 -  
474 - public boolean isLate() {  
475 - return late;  
476 - }  
477 -  
478 - public void setLate(boolean late) {  
479 - this.late = late;  
480 - }  
481 -  
482 - public String getRemarks() {  
483 - return remarks;  
484 - }  
485 -  
486 - public void setRemarks(String remarks) {  
487 - this.remarks = remarks;  
488 - }  
489 -  
490 - public String getDfsj() {  
491 - return dfsj;  
492 - }  
493 -  
494 - public void setDfsj(String dfsj) {  
495 - this.dfsj = dfsj;  
496 - }  
497 -  
498 - public Long getDfsjT() {  
499 - return dfsjT;  
500 - }  
501 -  
502 - public void setDfsjT(Long dfsjT) {  
503 - this.dfsjT = dfsjT;  
504 - }  
505 -  
506 - public Integer getDirectiveState() {  
507 - return directiveState;  
508 - }  
509 -  
510 - public void setDirectiveState(Integer directiveState) {  
511 - this.directiveState = directiveState;  
512 - }  
513 -  
514 - public String getQdzArrDatejh() {  
515 - return qdzArrDatejh;  
516 - }  
517 -  
518 - public void setQdzArrDatejh(String qdzArrDatejh) {  
519 - this.qdzArrDatejh = qdzArrDatejh;  
520 - }  
521 -  
522 - public String getQdzArrDatesj() {  
523 - return qdzArrDatesj;  
524 - }  
525 -  
526 - public void setQdzArrDatesj(String qdzArrDatesj) {  
527 - this.qdzArrDatesj = qdzArrDatesj;  
528 - }  
529 -  
530 - public Set<ChildTaskPlan> getcTasks() {  
531 - return cTasks;  
532 - }  
533 -  
534 - public void setcTasks(Set<ChildTaskPlan> cTasks) {  
535 - this.cTasks = cTasks;  
536 - }  
537 -  
538 - public String getGsName() {  
539 - return gsName;  
540 - }  
541 -  
542 - public void setGsName(String gsName) {  
543 - this.gsName = gsName;  
544 - }  
545 -  
546 - public String getGsBm() {  
547 - return gsBm;  
548 - }  
549 -  
550 - public void setGsBm(String gsBm) {  
551 - this.gsBm = gsBm;  
552 - }  
553 -  
554 - public String getFgsName() {  
555 - return fgsName;  
556 - }  
557 -  
558 - public void setFgsName(String fgsName) {  
559 - this.fgsName = fgsName;  
560 - }  
561 -  
562 - public String getFgsBm() {  
563 - return fgsBm;  
564 - }  
565 -  
566 - public void setFgsBm(String fgsBm) {  
567 - this.fgsBm = fgsBm;  
568 - }  
569 -  
570 - public Integer getCcno() {  
571 - return ccno;  
572 - }  
573 -  
574 - public void setCcno(Integer ccno) {  
575 - this.ccno = ccno;  
576 - }  
577 -  
578 - public boolean isDfAuto() {  
579 - return dfAuto;  
580 - }  
581 -  
582 - public void setDfAuto(boolean dfAuto) {  
583 - this.dfAuto = dfAuto;  
584 - }  
585 -  
586 - public boolean isOnline() {  
587 - return online;  
588 - }  
589 -  
590 - public void setOnline(boolean online) {  
591 - this.online = online;  
592 - }  
593 -  
594 - public boolean isReissue() {  
595 - return reissue;  
596 - }  
597 -  
598 - public void setReissue(boolean reissue) {  
599 - this.reissue = reissue;  
600 - }  
601 -  
602 - public Double getJhlcOrig() {  
603 - return jhlcOrig;  
604 - }  
605 -  
606 - public void setJhlcOrig(Double jhlcOrig) {  
607 - this.jhlcOrig = jhlcOrig;  
608 - }  
609 -  
610 - @Transient  
611 - private static DateTimeFormatter fmtHHmm = DateTimeFormat.forPattern("HH:mm");  
612 - /**  
613 - *  
614 - * @Title: setFcsjActualAll  
615 - * @Description: TODO(设置实际发车时间 时间戳)  
616 - * @throws  
617 - */  
618 - public void setFcsjActualAll(Long t){  
619 - this.fcsjActualTime = t;  
620 - this.fcsjActual = fmtHHmm.print(t);  
621 - }  
622 -  
623 - /**  
624 - *  
625 - * @Title: setFcsjActualAll  
626 - * @Description: TODO(设置实际终点时间)  
627 - * @throws  
628 - */  
629 - public void setZdsjActualAll(Long t){  
630 - this.zdsjActualTime = t;  
631 - this.zdsjActual = fmtHHmm.print(t);  
632 - }  
633 -} 1 +package com.bsth.entity;
  2 +
  3 +import org.joda.time.format.DateTimeFormat;
  4 +import org.joda.time.format.DateTimeFormatter;
  5 +
  6 +import javax.persistence.*;
  7 +import java.io.Serializable;
  8 +import java.util.Date;
  9 +import java.util.HashSet;
  10 +import java.util.Set;
  11 +
  12 +/**
  13 + * 实际排班计划明细。
  14 + */
  15 +@Entity
  16 +@Table(name = "bsth_c_s_sp_info_real")
  17 +@NamedEntityGraphs({
  18 + @NamedEntityGraph(name = "scheduleRealInfo_cTasks", attributeNodes = {
  19 + @NamedAttributeNode("cTasks")
  20 + })
  21 +})
  22 +public class ScheduleRealInfo implements Serializable{
  23 +
  24 +
  25 +
  26 + /** 主键Id */
  27 + @Id
  28 + private Long id;
  29 +
  30 + /** 计划ID */
  31 + private Long spId;
  32 +
  33 + /** 排班计划日期 */
  34 + private Date scheduleDate;
  35 + private String scheduleDateStr;
  36 +
  37 + /** 真实执行时间 yyyy-MM-dd */
  38 + private String realExecDate;
  39 +
  40 + /** 线路名称 */
  41 + private String xlName;
  42 + /** 线路编码 */
  43 + private String xlBm;
  44 +
  45 + /** 路牌名称 */
  46 + private String lpName;
  47 +
  48 + /** 车辆自编号 */
  49 + private String clZbh;
  50 +
  51 + /** 驾驶员工号 */
  52 + private String jGh;
  53 + /** 驾驶员名字 */
  54 + private String jName;
  55 + /** 驾驶员身份证 */
  56 + private String jId;
  57 + /** 售票员工号 */
  58 + private String sGh;
  59 + /** 售票员名字 */
  60 + private String sName;
  61 + /** 售票员身份证 */
  62 + private String sId;
  63 +
  64 + /** 线路方向 */
  65 + private String xlDir;
  66 + /** 起点站code*/
  67 + private String qdzCode;
  68 + /** 起点站名字 */
  69 + private String qdzName;
  70 +
  71 + /** 终点站code*/
  72 + private String zdzCode;
  73 + /** 终点站名字 */
  74 + private String zdzName;
  75 +
  76 + /** 计划发车时间(格式 HH:mm) */
  77 + private String fcsj;
  78 + /** 计划发车时间戳*/
  79 + @Transient
  80 + private Long fcsjT;
  81 +
  82 + /** 计划终点时间(格式 HH:mm) */
  83 + private String zdsj;
  84 + /** 计划终点时间戳*/
  85 + @Transient
  86 + private Long zdsjT;
  87 +
  88 + /** 发车顺序号 */
  89 + private Integer fcno;
  90 + /** 对应班次数 */
  91 + private Integer bcs;
  92 + /** 计划里程 */
  93 + private Double jhlc;
  94 +
  95 + /** 原始计划里程 (原计调的数据) */
  96 + private Double jhlcOrig;
  97 +
  98 + /** 班次历时 */
  99 + private Integer bcsj;
  100 +
  101 + /**
  102 + * 班次类型 TODO:正常班次、出场、进场、加油、区间班次、放空班次、放大站班次、两点间空驶
  103 + */
  104 + private String bcType;
  105 +
  106 + /** 创建日期 */
  107 + @Column(name = "create_date")
  108 + private Date createDate;
  109 + /** 修改日期 */
  110 + @Column(name = "update_date")
  111 + private Date updateDate;
  112 +
  113 + /** 实际发车时间*/
  114 + private String fcsjActual;
  115 + /** 实际发车时间戳*/
  116 + @Transient
  117 + private Long fcsjActualTime;
  118 + /**实际终点时间 */
  119 + private String zdsjActual;
  120 + /** 实际终点时间戳*/
  121 + @Transient
  122 + private Long zdsjActualTime;
  123 +
  124 + /**班次状态 0 未执行 1 正在执行 2 已执行 -1 已烂班 */
  125 + private int status;
  126 +
  127 + private String adjustExps;
  128 +
  129 + /** 是否是临加班次 */
  130 + private boolean sflj;
  131 +
  132 + /** 是否误点*/
  133 + @Transient
  134 + private boolean late;
  135 +
  136 + /** 备注*/
  137 + private String remarks;
  138 +
  139 + /**待发时间(格式 HH:mm) */
  140 + private String dfsj;
  141 +
  142 + /**待发时间戳 */
  143 + @Transient
  144 + private Long dfsjT;
  145 +
  146 + /** 指令下发状态 60: 已发送, 100: 设备确认收到, 200:驾驶员确认 0:失败 */
  147 + private Integer directiveState = -1;
  148 +
  149 + /** 起点站计划到达时间 */
  150 + @Transient
  151 + private String qdzArrDatejh;
  152 +
  153 + /** 起点站实际到达时间 */
  154 + @Transient
  155 + private String qdzArrDatesj;
  156 +
  157 + /** 子任务 */
  158 + @OneToMany(fetch = FetchType.LAZY, mappedBy = "schedule")
  159 + private Set<ChildTaskPlan> cTasks = new HashSet<>();
  160 +
  161 + /** 关联的公司名称 */
  162 + private String gsName;
  163 + /** 关联的公司编码 */
  164 + private String gsBm;
  165 + /** 关联的分公司名称 */
  166 + private String fgsName;
  167 + /** 关联的分公司编码 */
  168 + private String fgsBm;
  169 + /** 出场顺序号 */
  170 + private Integer ccno;
  171 +
  172 + //待发调试(是否自动调整)
  173 + private boolean dfAuto;
  174 + //是否有GPS信号
  175 + private boolean online;
  176 +
  177 + /** 是否有补发GPS信号 */
  178 + private boolean reissue;
  179 +
  180 + @Override
  181 + public int hashCode() {
  182 + return (this.id + this.scheduleDateStr + this.xlBm + this.fcsj).hashCode();
  183 + }
  184 +
  185 + @Override
  186 + public boolean equals(Object obj) {
  187 + return this.id.equals(((ScheduleRealInfo)obj).getId());
  188 + }
  189 +
  190 + public Long getId() {
  191 + return id;
  192 + }
  193 +
  194 + public void setId(Long id) {
  195 + this.id = id;
  196 + }
  197 +
  198 + public Long getSpId() {
  199 + return spId;
  200 + }
  201 +
  202 + public void setSpId(Long spId) {
  203 + this.spId = spId;
  204 + }
  205 +
  206 + public Date getScheduleDate() {
  207 + return scheduleDate;
  208 + }
  209 +
  210 + public void setScheduleDate(Date scheduleDate) {
  211 + this.scheduleDate = scheduleDate;
  212 + }
  213 +
  214 + public String getScheduleDateStr() {
  215 + return scheduleDateStr;
  216 + }
  217 +
  218 + public void setScheduleDateStr(String scheduleDateStr) {
  219 + this.scheduleDateStr = scheduleDateStr;
  220 + }
  221 +
  222 + public String getRealExecDate() {
  223 + return realExecDate;
  224 + }
  225 +
  226 + public void setRealExecDate(String realExecDate) {
  227 + this.realExecDate = realExecDate;
  228 + }
  229 +
  230 + public String getXlName() {
  231 + return xlName;
  232 + }
  233 +
  234 + public void setXlName(String xlName) {
  235 + this.xlName = xlName;
  236 + }
  237 +
  238 + public String getXlBm() {
  239 + return xlBm;
  240 + }
  241 +
  242 + public void setXlBm(String xlBm) {
  243 + this.xlBm = xlBm;
  244 + }
  245 +
  246 + public String getLpName() {
  247 + return lpName;
  248 + }
  249 +
  250 + public void setLpName(String lpName) {
  251 + this.lpName = lpName;
  252 + }
  253 +
  254 + public String getClZbh() {
  255 + return clZbh;
  256 + }
  257 +
  258 + public void setClZbh(String clZbh) {
  259 + this.clZbh = clZbh;
  260 + }
  261 +
  262 + public String getjGh() {
  263 + return jGh;
  264 + }
  265 +
  266 + public void setjGh(String jGh) {
  267 + this.jGh = jGh;
  268 + }
  269 +
  270 + public String getjName() {
  271 + return jName;
  272 + }
  273 +
  274 + public void setjName(String jName) {
  275 + this.jName = jName;
  276 + }
  277 +
  278 + public String getjId() {
  279 + return jId;
  280 + }
  281 +
  282 + public void setjId(String jId) {
  283 + this.jId = jId;
  284 + }
  285 +
  286 + public String getsGh() {
  287 + return sGh;
  288 + }
  289 +
  290 + public void setsGh(String sGh) {
  291 + this.sGh = sGh;
  292 + }
  293 +
  294 + public String getsName() {
  295 + return sName;
  296 + }
  297 +
  298 + public void setsName(String sName) {
  299 + this.sName = sName;
  300 + }
  301 +
  302 + public String getsId() {
  303 + return sId;
  304 + }
  305 +
  306 + public void setsId(String sId) {
  307 + this.sId = sId;
  308 + }
  309 +
  310 + public String getXlDir() {
  311 + return xlDir;
  312 + }
  313 +
  314 + public void setXlDir(String xlDir) {
  315 + this.xlDir = xlDir;
  316 + }
  317 +
  318 + public String getQdzCode() {
  319 + return qdzCode;
  320 + }
  321 +
  322 + public void setQdzCode(String qdzCode) {
  323 + this.qdzCode = qdzCode;
  324 + }
  325 +
  326 + public String getQdzName() {
  327 + return qdzName;
  328 + }
  329 +
  330 + public void setQdzName(String qdzName) {
  331 + this.qdzName = qdzName;
  332 + }
  333 +
  334 + public String getZdzCode() {
  335 + return zdzCode;
  336 + }
  337 +
  338 + public void setZdzCode(String zdzCode) {
  339 + this.zdzCode = zdzCode;
  340 + }
  341 +
  342 + public String getZdzName() {
  343 + return zdzName;
  344 + }
  345 +
  346 + public void setZdzName(String zdzName) {
  347 + this.zdzName = zdzName;
  348 + }
  349 +
  350 + public String getFcsj() {
  351 + return fcsj;
  352 + }
  353 +
  354 + public void setFcsj(String fcsj) {
  355 + this.fcsj = fcsj;
  356 + }
  357 +
  358 + public Long getFcsjT() {
  359 + return fcsjT;
  360 + }
  361 +
  362 + public void setFcsjT(Long fcsjT) {
  363 + this.fcsjT = fcsjT;
  364 + }
  365 +
  366 + public String getZdsj() {
  367 + return zdsj;
  368 + }
  369 +
  370 + public void setZdsj(String zdsj) {
  371 + this.zdsj = zdsj;
  372 + }
  373 +
  374 + public Long getZdsjT() {
  375 + return zdsjT;
  376 + }
  377 +
  378 + public void setZdsjT(Long zdsjT) {
  379 + this.zdsjT = zdsjT;
  380 + }
  381 +
  382 + public Integer getFcno() {
  383 + return fcno;
  384 + }
  385 +
  386 + public void setFcno(Integer fcno) {
  387 + this.fcno = fcno;
  388 + }
  389 +
  390 + public Integer getBcs() {
  391 + return bcs;
  392 + }
  393 +
  394 + public void setBcs(Integer bcs) {
  395 + this.bcs = bcs;
  396 + }
  397 +
  398 + public Double getJhlc() {
  399 + return jhlc;
  400 + }
  401 +
  402 + public void setJhlc(Double jhlc) {
  403 + this.jhlc = jhlc;
  404 + }
  405 +
  406 + public Integer getBcsj() {
  407 + return bcsj;
  408 + }
  409 +
  410 + public void setBcsj(Integer bcsj) {
  411 + this.bcsj = bcsj;
  412 + }
  413 +
  414 + public String getBcType() {
  415 + return bcType;
  416 + }
  417 +
  418 + public void setBcType(String bcType) {
  419 + this.bcType = bcType;
  420 + }
  421 +
  422 + public Date getCreateDate() {
  423 + return createDate;
  424 + }
  425 +
  426 + public void setCreateDate(Date createDate) {
  427 + this.createDate = createDate;
  428 + }
  429 +
  430 + public Date getUpdateDate() {
  431 + return updateDate;
  432 + }
  433 +
  434 + public void setUpdateDate(Date updateDate) {
  435 + this.updateDate = updateDate;
  436 + }
  437 +
  438 + public String getFcsjActual() {
  439 + return fcsjActual;
  440 + }
  441 +
  442 + public void setFcsjActual(String fcsjActual) {
  443 + this.fcsjActual = fcsjActual;
  444 + }
  445 +
  446 + public Long getFcsjActualTime() {
  447 + return fcsjActualTime;
  448 + }
  449 +
  450 + public void setFcsjActualTime(Long fcsjActualTime) {
  451 + this.fcsjActualTime = fcsjActualTime;
  452 + }
  453 +
  454 + public String getZdsjActual() {
  455 + return zdsjActual;
  456 + }
  457 +
  458 + public void setZdsjActual(String zdsjActual) {
  459 + this.zdsjActual = zdsjActual;
  460 + }
  461 +
  462 + public Long getZdsjActualTime() {
  463 + return zdsjActualTime;
  464 + }
  465 +
  466 + public void setZdsjActualTime(Long zdsjActualTime) {
  467 + this.zdsjActualTime = zdsjActualTime;
  468 + }
  469 +
  470 + public int getStatus() {
  471 + return status;
  472 + }
  473 +
  474 + public void setStatus(int status) {
  475 + this.status = status;
  476 + }
  477 +
  478 + public String getAdjustExps() {
  479 + return adjustExps;
  480 + }
  481 +
  482 + public void setAdjustExps(String adjustExps) {
  483 + this.adjustExps = adjustExps;
  484 + }
  485 +
  486 + public boolean isSflj() {
  487 + return sflj;
  488 + }
  489 +
  490 + public void setSflj(boolean sflj) {
  491 + this.sflj = sflj;
  492 + }
  493 +
  494 + public boolean isLate() {
  495 + return late;
  496 + }
  497 +
  498 + public void setLate(boolean late) {
  499 + this.late = late;
  500 + }
  501 +
  502 + public String getRemarks() {
  503 + return remarks;
  504 + }
  505 +
  506 + public void setRemarks(String remarks) {
  507 + this.remarks = remarks;
  508 + }
  509 +
  510 + public String getDfsj() {
  511 + return dfsj;
  512 + }
  513 +
  514 + public void setDfsj(String dfsj) {
  515 + this.dfsj = dfsj;
  516 + }
  517 +
  518 + public Long getDfsjT() {
  519 + return dfsjT;
  520 + }
  521 +
  522 + public void setDfsjT(Long dfsjT) {
  523 + this.dfsjT = dfsjT;
  524 + }
  525 +
  526 + public Integer getDirectiveState() {
  527 + return directiveState;
  528 + }
  529 +
  530 + public void setDirectiveState(Integer directiveState) {
  531 + this.directiveState = directiveState;
  532 + }
  533 +
  534 + public String getQdzArrDatejh() {
  535 + return qdzArrDatejh;
  536 + }
  537 +
  538 + public void setQdzArrDatejh(String qdzArrDatejh) {
  539 + this.qdzArrDatejh = qdzArrDatejh;
  540 + }
  541 +
  542 + public String getQdzArrDatesj() {
  543 + return qdzArrDatesj;
  544 + }
  545 +
  546 + public void setQdzArrDatesj(String qdzArrDatesj) {
  547 + this.qdzArrDatesj = qdzArrDatesj;
  548 + }
  549 +
  550 + public Set<ChildTaskPlan> getcTasks() {
  551 + return cTasks;
  552 + }
  553 +
  554 + public void setcTasks(Set<ChildTaskPlan> cTasks) {
  555 + this.cTasks = cTasks;
  556 + }
  557 +
  558 + public String getGsName() {
  559 + return gsName;
  560 + }
  561 +
  562 + public void setGsName(String gsName) {
  563 + this.gsName = gsName;
  564 + }
  565 +
  566 + public String getGsBm() {
  567 + return gsBm;
  568 + }
  569 +
  570 + public void setGsBm(String gsBm) {
  571 + this.gsBm = gsBm;
  572 + }
  573 +
  574 + public String getFgsName() {
  575 + return fgsName;
  576 + }
  577 +
  578 + public void setFgsName(String fgsName) {
  579 + this.fgsName = fgsName;
  580 + }
  581 +
  582 + public String getFgsBm() {
  583 + return fgsBm;
  584 + }
  585 +
  586 + public void setFgsBm(String fgsBm) {
  587 + this.fgsBm = fgsBm;
  588 + }
  589 +
  590 + public Integer getCcno() {
  591 + return ccno;
  592 + }
  593 +
  594 + public void setCcno(Integer ccno) {
  595 + this.ccno = ccno;
  596 + }
  597 +
  598 + public boolean isDfAuto() {
  599 + return dfAuto;
  600 + }
  601 +
  602 + public void setDfAuto(boolean dfAuto) {
  603 + this.dfAuto = dfAuto;
  604 + }
  605 +
  606 + public boolean isOnline() {
  607 + return online;
  608 + }
  609 +
  610 + public void setOnline(boolean online) {
  611 + this.online = online;
  612 + }
  613 +
  614 + public boolean isReissue() {
  615 + return reissue;
  616 + }
  617 +
  618 + public void setReissue(boolean reissue) {
  619 + this.reissue = reissue;
  620 + }
  621 +
  622 + public Double getJhlcOrig() {
  623 + return jhlcOrig;
  624 + }
  625 +
  626 + public void setJhlcOrig(Double jhlcOrig) {
  627 + this.jhlcOrig = jhlcOrig;
  628 + }
  629 +
  630 + @Transient
  631 + private static DateTimeFormatter fmtHHmm = DateTimeFormat.forPattern("HH:mm");
  632 + /**
  633 + *
  634 + * @Title: setFcsjActualAll
  635 + * @Description: TODO(设置实际发车时间 时间戳)
  636 + * @throws
  637 + */
  638 + public void setFcsjActualAll(Long t){
  639 + this.fcsjActualTime = t;
  640 + this.fcsjActual = fmtHHmm.print(t);
  641 + }
  642 +
  643 + /**
  644 + *
  645 + * @Title: setFcsjActualAll
  646 + * @Description: TODO(设置实际终点时间)
  647 + * @throws
  648 + */
  649 + public void setZdsjActualAll(Long t){
  650 + this.zdsjActualTime = t;
  651 + this.zdsjActual = fmtHHmm.print(t);
  652 + }
  653 +}