自动化立体仓库 - WCS系统
*
lsh
2025-04-28 0cf26d5f8c8c2c15645443e84566ffec72abfdf1
src/main/java/com/zy/asrs/entity/TaskWrk.java
@@ -5,6 +5,8 @@
import com.baomidou.mybatisplus.annotations.TableField;
import java.text.SimpleDateFormat;
import java.util.Date;
import io.swagger.models.auth.In;
import org.springframework.format.annotation.DateTimeFormat;
import com.core.common.SpringUtils;
import com.zy.asrs.service.BasWrkIotypeService;
@@ -32,7 +34,7 @@
import java.io.Serializable;
@Data
@TableName("wcs_task_wrk")
@TableName("\"SOURCE\".\"wcs_task_wrk\"")
public class TaskWrk implements Serializable {
    private static final long serialVersionUID = 1L;
@@ -41,28 +43,29 @@
     * wms任务号
     */
    @ApiModelProperty(value= "wms任务号")
    @TableId(value = "task_no", type = IdType.INPUT)
    @TableField("task_no")
    @TableId(value = "TASK_NO", type = IdType.INPUT)
    @TableField("TASK_NO")
    private String taskNo;
    /**
     * 任务状态 1: 接收  2: 派发  3: 完结  4: 取消
     */
    @ApiModelProperty(value= "任务状态 1: 接收  2: 派发  3: 完结  4: 取消  ")
    @ApiModelProperty(value= "任务状态 1: 接收  2: 派发  5: 完结  4: 取消  ")
    @TableField("STATUS")
    private Integer status;
    /**
     * 任务号
     */
    @ApiModelProperty(value= "任务号")
    @TableField("wrk_no")
    @TableField("WRK_NO")
    private Integer wrkNo;
    /**
     * 任务时间(接收时间)
     */
    @ApiModelProperty(value= "任务时间(接收时间)")
    @TableField("create_time")
    @TableField("CREATE_TIME")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
@@ -70,42 +73,57 @@
     * 任务类型
     */
    @ApiModelProperty(value= "任务类型")
    @TableField("io_type")
    @TableField("IO_TYPE")
    private Integer ioType;
    /**
     * 优先级
     */
    @ApiModelProperty(value= "优先级")
    @TableField("io_pri")
    private Double ioPri;
    @TableField("IO_PRI")
    private Integer ioPri;
    /**
     * 起点
     */
    @ApiModelProperty(value= "起点")
    @TableField("start_point")
    @TableField("START_POINT")
    private String startPoint;
    /**
     * 终点
     */
    @ApiModelProperty(value= "终点")
    @TableField("target_point")
    @TableField("TARGET_POINT")
    private String targetPoint;
    @ApiModelProperty(value = "原始起点")
    @TableField("ORIGIN_START_POINT")
    private String originStartPoint;
    @ApiModelProperty(value = "原始起点")
    @TableField("ORIGIN_TARGET_POINT")
    private String originTargetPoint;
    /**
     * 任务号
     */
    @ApiModelProperty(value= "重量")
    @TableField("SC_WEIGHT")
    private Integer scWeight;
    /**
     * 修改人员
     */
    @ApiModelProperty(value= "修改人员")
    @TableField("modi_user")
    @TableField("MODI_USER")
    private Long modiUser;
    /**
     * 修改时间
     */
    @ApiModelProperty(value= "修改时间")
    @TableField("modi_time")
    @TableField("MODI_TIME")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date modiTime;
@@ -113,19 +131,21 @@
     * 备注
     */
    @ApiModelProperty(value= "备注")
    @TableField("MEMO")
    private String memo;
    /**
     * 条码
     */
    @ApiModelProperty(value= "条码")
    @TableField("BARCODE")
    private String barcode;
    /**
     * 派发时间
     */
    @ApiModelProperty(value= "派发时间")
    @TableField("assign_time")
    @TableField("ASSIGN_TIME")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date assignTime;
@@ -133,7 +153,7 @@
     * 执行时间
     */
    @ApiModelProperty(value= "执行时间")
    @TableField("execute_time")
    @TableField("EXECUTE_TIME")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date executeTime;
@@ -141,7 +161,7 @@
     * 完结时间
     */
    @ApiModelProperty(value= "完结时间")
    @TableField("complete_time")
    @TableField("COMPLETE_TIME")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date completeTime;
@@ -149,7 +169,7 @@
     * 取消时间
     */
    @ApiModelProperty(value= "取消时间")
    @TableField("cancel_time")
    @TableField("CANCEL_TIME")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date cancelTime;
@@ -157,30 +177,30 @@
     * 工作状态
     */
    @ApiModelProperty(value= "工作状态")
    @TableField("wrk_sts")
    @TableField("WRK_STS")
    private Integer wrkSts;
    /**
     * 堆垛机号
     */
    @ApiModelProperty(value= "堆垛机号")
    @TableField("crn_no")
    @TableField("CRN_NO")
    private Integer crnNo;
    /**
     * 指令执行步序
     */
    @ApiModelProperty(value= "指令执行步序")
    @TableField("command_step")
    @TableField("COMMAND_STEP")
    private Integer commandStep;
    @ApiModelProperty(value = "移库标记")
    @TableField("transfer_mark")
    @TableField("TRANSFER_MARK")
    private Integer transferMark;
    public TaskWrk() {}
    public TaskWrk(String taskNo,Integer status,Integer wrkNo,Date createTime,Integer ioType,Double ioPri,String startPoint,String targetPoint,Long modiUser,Date modiTime,String memo,String barcode,Date assignTime,Date executeTime,Date completeTime,Date cancelTime,Integer wrkSts) {
    public TaskWrk(String taskNo,Integer status,Integer wrkNo,Date createTime,Integer ioType,Integer ioPri,String startPoint,String targetPoint,Long modiUser,Date modiTime,String memo,String barcode,Date assignTime,Date executeTime,Date completeTime,Date cancelTime,Integer wrkSts) {
        this.taskNo = taskNo;
        this.status = status;
        this.wrkNo = wrkNo;
@@ -228,9 +248,11 @@
            case 2:
                return "派发";
            case 3:
                return "完结";
                return "步序完成";
            case 4:
                return "取消";
            case 5:
                return "完结";
            default:
                return String.valueOf(this.status);
        }
@@ -330,4 +352,15 @@
        return Math.abs(day) + "天" + Math.abs(hour) + "小时" + Math.abs(min) + "分" + Math.abs(s) + "秒";
    }
    public Integer getTargetPointConvert(){
        switch (targetPoint){
            case "11":
                return 11;
            default:
                return null;
        }
    }
}