| | |
| | | private Long oriCode; |
| | | |
| | | /** |
| | | * 起始巷道哈希 |
| | | */ |
| | | @ApiModelProperty(value= "起始巷道哈希") |
| | | private String oriLaneHash; |
| | | |
| | | /** |
| | | * 目标站 |
| | | */ |
| | | @ApiModelProperty(value= "目标站") |
| | |
| | | */ |
| | | @ApiModelProperty(value= "目标码") |
| | | private Long destCode; |
| | | |
| | | /** |
| | | * 目标巷道哈希 |
| | | */ |
| | | @ApiModelProperty(value= "目标巷道哈希") |
| | | private String destLaneHash; |
| | | |
| | | /** |
| | | * 空板 |
| | |
| | | BusService service = SpringUtils.getBean(BusService.class); |
| | | Bus bus = service.getById(this.busId); |
| | | if (!Cools.isEmpty(bus)){ |
| | | return String.valueOf(bus.getUuid()); |
| | | return String.valueOf(bus.getBusNo()); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | return null; |
| | | } |
| | | |
| | | public String getStatus$(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | | case 1: |
| | | return "正常"; |
| | | case 0: |
| | | return "冻结"; |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | public Boolean getStatusBool(){ |
| | | if (null == this.status){ return null; } |
| | | switch (this.status){ |
| | |
| | | } |
| | | } |
| | | |
| | | public String getOriDesc() { |
| | | String oriDesc = ""; |
| | | if (null != this.oriSta) { |
| | | oriDesc = "STA" + " - " + this.getOriSta$(); |
| | | } |
| | | if (null != this.oriLoc) { |
| | | oriDesc = "LOC" + " - " + this.getOriLoc$(); |
| | | } |
| | | if (!Cools.isEmpty(oriDesc)) { |
| | | if (null != this.oriCode) { |
| | | oriDesc = oriDesc + " (" + this.getOriCode$() + ")"; |
| | | } |
| | | } else { |
| | | oriDesc = "CODE" + " - " + this.getOriCode$(); |
| | | } |
| | | return oriDesc; |
| | | } |
| | | |
| | | public String getDestDesc() { |
| | | String destDesc = ""; |
| | | if (null != this.destSta) { |
| | | destDesc = "STA" + " - " + this.getDestSta$(); |
| | | } |
| | | if (null != this.destLoc) { |
| | | destDesc = "LOC" + " - " + this.getDestLoc$(); |
| | | } |
| | | if (!Cools.isEmpty(destDesc)) { |
| | | if (null != this.destCode) { |
| | | destDesc = destDesc + " (" + this.getDestCode$() + ")"; |
| | | } |
| | | } else { |
| | | destDesc = "CODE" + " - " + this.getDestCode$(); |
| | | } |
| | | return destDesc; |
| | | } |
| | | |
| | | } |