From 04e0677e23d17324ef80508b1019a0fa19db6aa4 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 10 十月 2024 15:52:18 +0800
Subject: [PATCH] #
---
zy-acs-manager/src/main/java/com/zy/acs/manager/manager/entity/Task.java | 43 ++++++++++++++++++++++++++++---------------
1 files changed, 28 insertions(+), 15 deletions(-)
diff --git a/zy-acs-manager/src/main/java/com/zy/acs/manager/manager/entity/Task.java b/zy-acs-manager/src/main/java/com/zy/acs/manager/manager/entity/Task.java
index 4c8df17..6f11eef 100644
--- a/zy-acs-manager/src/main/java/com/zy/acs/manager/manager/entity/Task.java
+++ b/zy-acs-manager/src/main/java/com/zy/acs/manager/manager/entity/Task.java
@@ -273,7 +273,7 @@
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;
}
@@ -368,20 +368,6 @@
return null;
}
- public String getStatus$(){
- if (null == this.status){ return null; }
- switch (this.status){
- case 1:
- return "姝e父";
- case 0:
- return "鍐荤粨";
- default:
- return String.valueOf(this.status);
- }
- }
-
-
-
public Boolean getStatusBool(){
if (null == this.status){ return null; }
switch (this.status){
@@ -394,5 +380,32 @@
}
}
+ 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) && null != this.oriCode) {
+ oriDesc = oriDesc + " (" + 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) && null != this.destCode) {
+ destDesc = destDesc + " (" + this.getDestCode$() + ")";
+ }
+ return destDesc;
+ }
}
--
Gitblit v1.9.1