| | |
| | | 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; |
| | |
| | | * 是否删除 1: 是 0: 否 |
| | | */ |
| | | @ApiModelProperty(value= "是否删除 1: 是 0: 否 ") |
| | | @TableLogic |
| | | private Integer deleted; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value= "AGV号") |
| | | private Integer agvNo; |
| | | |
| | | /** |
| | | * 是否记录库位信息 |
| | | */ |
| | | @ApiModelProperty(value= "是否记录库位信息") |
| | | private String recordLoc; |
| | | |
| | | /** |
| | | * WMS任务号 |
| | | */ |
| | | @ApiModelProperty(value= "WMS任务号") |
| | | private String wmsTaskNo; |
| | | |
| | | |
| | | 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, Integer shuttleNo, Integer liftNo, Integer crnNo, Integer rgvNo, Integer agvNo) { |
| | | 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, String wmsTaskNo) { |
| | | this.uuid = uuid; |
| | | this.busId = busId; |
| | | this.taskNo = taskNo; |
| | |
| | | this.crnNo = crnNo; |
| | | this.rgvNo = rgvNo; |
| | | this.agvNo = agvNo; |
| | | this.recordLoc = recordLoc; |
| | | this.wmsTaskNo = wmsTaskNo; |
| | | } |
| | | |
| | | // Task task = new Task( |
| | |
| | | |
| | | 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()); |
| | | } |