| | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.zy.asrs.wcs.core.service.BusService; |
| | | import com.zy.asrs.wcs.core.service.TaskCtgService; |
| | | import com.zy.asrs.wcs.core.service.TaskStsService; |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 四向穿梭车号 |
| | | */ |
| | | @ApiModelProperty(value= "四向穿梭车号") |
| | | private Integer shuttleNo; |
| | | |
| | | /** |
| | | * 提升机号 |
| | | */ |
| | | @ApiModelProperty(value= "提升机号") |
| | | private Integer liftNo; |
| | | |
| | | /** |
| | | * 堆垛机号 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机号") |
| | | private Integer crnNo; |
| | | |
| | | /** |
| | | * RGV号 |
| | | */ |
| | | @ApiModelProperty(value= "RGV号") |
| | | private Integer rgvNo; |
| | | |
| | | /** |
| | | * AGV号 |
| | | */ |
| | | @ApiModelProperty(value= "AGV号") |
| | | private Integer agvNo; |
| | | |
| | | /** |
| | | * 是否记录库位信息 |
| | | */ |
| | | @ApiModelProperty(value= "是否记录库位信息") |
| | | private String recordLoc; |
| | | |
| | | |
| | | public Task() {} |
| | | |
| | | public Task(String uuid,Long busId,String taskNo,String serialNum,String title,Long taskSts,Long taskCtg,Integer priority,String originSite,String originLoc,String destSite,String destLoc,Integer emptyMk,String zpallet,String phase,Date ioTime,Date startTime,Date endTime,Date exceptionTime,String exceptionDesc,Long hostId,Integer status,Integer deleted,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) { |
| | | public Task(String uuid, Long busId, String taskNo, String serialNum, String title, Long taskSts, Long taskCtg, Integer priority, String originSite, String originLoc, String destSite, String destLoc, Integer emptyMk, String zpallet, String phase, Date ioTime, Date startTime, Date endTime, Date exceptionTime, String exceptionDesc, Long hostId, Integer status, Integer deleted, Date createTime, Long createBy, Date updateTime, Long updateBy, String memo, Integer shuttleNo, Integer liftNo, Integer crnNo, Integer rgvNo, Integer agvNo, String recordLoc) { |
| | | this.uuid = uuid; |
| | | this.busId = busId; |
| | | this.taskNo = taskNo; |
| | |
| | | this.updateTime = updateTime; |
| | | this.updateBy = updateBy; |
| | | this.memo = memo; |
| | | this.shuttleNo = shuttleNo; |
| | | this.liftNo = liftNo; |
| | | this.crnNo = crnNo; |
| | | this.rgvNo = rgvNo; |
| | | this.agvNo = agvNo; |
| | | this.recordLoc = recordLoc; |
| | | } |
| | | |
| | | // Task task = new Task( |
| | | // Task task = new Task( |
| | | // null, // 编号 |
| | | // null, // 总线 |
| | | // null, // 任务号 |
| | |
| | | |
| | | public String getTaskSts$(){ |
| | | TaskStsService service = SpringUtils.getBean(TaskStsService.class); |
| | | TaskSts taskSts = service.getById(this.taskSts); |
| | | TaskSts taskSts = service.getOne(new LambdaQueryWrapper<TaskSts>() |
| | | .eq(TaskSts::getUuid, String.valueOf(this.taskSts)) |
| | | .eq(TaskSts::getHostId, this.hostId)); |
| | | if (!Cools.isEmpty(taskSts)){ |
| | | return String.valueOf(taskSts.getName()); |
| | | } |