Commit d8c9ff2f5f148cfa699096610f9684861b7d66ec

Authored by 王通
1 parent 26e852f5

1.加入kafka传电子路单至数据中台

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