| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | |
| | | |
| | | /** |
| | | * 入出库类型 |
| | | * 3.站到站 |
| | | * 4.站到区域 |
| | | * 5.区域到站 |
| | | */ |
| | | @ApiModelProperty(value= "入出库类型") |
| | | @TableField("io_type") |
| | |
| | | @TableField("loc_sts") |
| | | private String locSts; |
| | | |
| | | @ApiModelProperty(value= "1.海康AGV 2.华晓AGV 默认是1.海康") |
| | | @TableField("plt_type") |
| | | private Integer pltType=1; |
| | | |
| | | @ApiModelProperty(value= "料架号") |
| | | private String packed; |
| | | |
| | | @ApiModelProperty(value= "下发AGV任务计数") |
| | | @TableField("ctn_type") |
| | | private Integer ctnType=0; |
| | | |
| | | /** |
| | | * 拣料 |
| | | */ |
| | |
| | | @TableField("online_yn") |
| | | private String onlineYn; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value= "是否任务报错") |
| | | @TableField("upd_mk") |
| | | private String updMk; |
| | | |
| | |
| | | @ApiModelProperty(value= "退出") |
| | | @TableField("exit_mk") |
| | | private String exitMk; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("plt_type") |
| | | private Integer pltType; |
| | | |
| | | /** |
| | | * 空板 |
| | |
| | | @ApiModelProperty(value= "工作时间") |
| | | @TableField("io_time") |
| | | private Date ioTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("ctn_type") |
| | | private Integer ctnType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | private String packed; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("ove_mk") |
| | |
| | | @TableField("take_none") |
| | | private String takeNone; |
| | | |
| | | /** |
| | | * 外部任务编号 |
| | | */ |
| | | @ApiModelProperty(value= "外部任务编号") |
| | | @TableField("task_no") |
| | | private String taskNo; |
| | | |
| | | public Task() {} |
| | | |
| | | public String getYmd$(){ |
| | |
| | | |
| | | public String getTaskType$(){ |
| | | if (Cools.isEmpty(this.taskType)){return null;} |
| | | if (taskType.equals("agv")) { |
| | | if (taskType.equals("AGV") || taskType.equals("agv")) { |
| | | return "AGV任务"; |
| | | }if(taskType.equals("AGV补空料架")){ |
| | | return "AGV补空料架任务"; |
| | | }if(taskType.equals("AGV空料架回缓存区")){ |
| | | return "AGV空料架回缓存区任务"; |
| | | }if(taskType.equals("ZX-AGV")){ |
| | | return "转序搬运任务"; |
| | | } else { |
| | | return "堆垛机任务"; |
| | | return "其他搬运任务"; |
| | | } |
| | | } |
| | | |
| | | |
| | | public String getStaNo$(){ |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.staNo); |
| | | BasStationService service = SpringUtils.getBean(BasStationService.class); |
| | | BasStation basDevp = service.selectOne(new EntityWrapper<BasStation>().eq("dev_no", this.staNo)); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | |
| | | } |
| | | |
| | | public String getSourceStaNo$(){ |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.sourceStaNo); |
| | | BasStationService service = SpringUtils.getBean(BasStationService.class); |
| | | BasStation basDevp = service.selectOne(new EntityWrapper<BasStation>().eq("dev_no", this.sourceStaNo)); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |