|  |  |  | 
|---|
|  |  |  | import com.zy.acs.manager.manager.service.AgvService; | 
|---|
|  |  |  | import com.zy.acs.manager.manager.service.CodeService; | 
|---|
|  |  |  | import com.zy.acs.manager.manager.service.TaskService; | 
|---|
|  |  |  | import com.zy.acs.manager.manager.service.TravelService; | 
|---|
|  |  |  | import io.swagger.annotations.ApiModelProperty; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | //            null    // 备注 | 
|---|
|  |  |  | //    ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getTravelId$(){ | 
|---|
|  |  |  | TravelService service = SpringUtils.getBean(TravelService.class); | 
|---|
|  |  |  | Travel travel = service.getById(this.travelId); | 
|---|
|  |  |  | if (!Cools.isEmpty(travel)){ | 
|---|
|  |  |  | return String.valueOf(travel.getUuid()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getTaskId$(){ | 
|---|
|  |  |  | TaskService service = SpringUtils.getBean(TaskService.class); | 
|---|
|  |  |  | Task task = service.getById(this.taskId); | 
|---|
|  |  |  | 
|---|
|  |  |  | CodeService service = SpringUtils.getBean(CodeService.class); | 
|---|
|  |  |  | Code code = service.getById(this.startNode); | 
|---|
|  |  |  | if (!Cools.isEmpty(code)){ | 
|---|
|  |  |  | return String.valueOf(code.getUuid()); | 
|---|
|  |  |  | return String.valueOf(code.getData()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | CodeService service = SpringUtils.getBean(CodeService.class); | 
|---|
|  |  |  | Code code = service.getById(this.endNode); | 
|---|
|  |  |  | if (!Cools.isEmpty(code)){ | 
|---|
|  |  |  | return String.valueOf(code.getUuid()); | 
|---|
|  |  |  | return String.valueOf(code.getData()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getStatus$(){ | 
|---|
|  |  |  | public Boolean getStatusBool(){ | 
|---|
|  |  |  | if (null == this.status){ return null; } | 
|---|
|  |  |  | switch (this.status){ | 
|---|
|  |  |  | case 1: | 
|---|
|  |  |  | return "正常"; | 
|---|
|  |  |  | return true; | 
|---|
|  |  |  | case 0: | 
|---|
|  |  |  | return "冻结"; | 
|---|
|  |  |  | return false; | 
|---|
|  |  |  | default: | 
|---|
|  |  |  | return String.valueOf(this.status); | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDeleted$(){ | 
|---|
|  |  |  | if (null == this.deleted){ return null; } | 
|---|
|  |  |  | switch (this.deleted){ | 
|---|
|  |  |  | case 1: | 
|---|
|  |  |  | return "是"; | 
|---|
|  |  |  | case 0: | 
|---|
|  |  |  | return "否"; | 
|---|
|  |  |  | default: | 
|---|
|  |  |  | return String.valueOf(this.deleted); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public String getSegDesc() { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|