#
1
2025-05-14 dcdfc93b50febf61301832d91dfcddcfa1ca5403
src/main/java/com/zy/asrs/entity/TaskWrk.java
@@ -50,7 +50,7 @@
    /**
     * 任务状态 1: 接收  2: 派发  3: 完结  4: 取消
     */
    @ApiModelProperty(value= "任务状态 1: 接收  2: 派发  5: 完结  4: 取消  ")
    @ApiModelProperty(value= "任务状态 1: 接收  2: 派发  5: 完结  4: 取消  9:等待小车搬运")
    @TableField("STATUS")
    private Integer status;
@@ -101,7 +101,7 @@
    @TableField("ORIGIN_START_POINT")
    private String originStartPoint;
    @ApiModelProperty(value = "原始起点")
    @ApiModelProperty(value = "原始终点")
    @TableField("ORIGIN_TARGET_POINT")
    private String originTargetPoint;
@@ -110,7 +110,7 @@
     */
    @ApiModelProperty(value= "重量")
    @TableField("SC_WEIGHT")
    private Integer scWeight;
    private Integer scWeight = 0;
    /**
     * 修改人员
@@ -352,4 +352,45 @@
        return Math.abs(day) + "天" + Math.abs(hour) + "小时" + Math.abs(min) + "分" + Math.abs(s) + "秒";
    }
    public Integer getTargetPointConvert(){
        switch (originTargetPoint){
            case "11":
                return 11;
            default:
                return null;
        }
    }
    public Integer getIoTypeWms(){
        switch (ioType){
            case 2:
                return 1;
            case 3:
                return 2;
            case 1:
                return 3;
            default:
                return 0;
        }
    }
    public Integer getStatusWms(){
        return status;
    }
    public String getPut(String point){
        String[] split = point.split("-");
        if (split.length == 5){
//            String locNo = String.format("%02d", ) +
//                    String.format("%03d", split[3]) +
//                    String.format("%02d", split[4]);
            return split[2]+"0"+split[3]+split[4];
        } else {
            return point;
        }
    }
}