自动化立体仓库 - WCS系统
#
lsh
2024-07-18 c7feb49880a74b18149efec5fb515fdab3b8ccd5
src/main/java/com/zy/asrs/entity/WrkMastExecute.java
@@ -102,6 +102,13 @@
    private Integer rgvId;
    /**
     * RGV
     */
    @ApiModelProperty(value= "RGV")
    @TableField("rgv_end_id")
    private Integer rgvEndId;
    /**
     * 作业时间
     */
    @ApiModelProperty(value= "作业时间")
@@ -134,22 +141,31 @@
    /**
     * 工作状态
     * 0:初始  wrk_sts
     * 1:RGV小车避让、2:避让完成、3:开门中、4:开门完成、5:更新完成    //io_type = 1、3
     * 1:RGV小车避让、2:避让完成、3:关门中、4:关门完成、5:更新完成    //io_type = 2、4
     * 1:RGV小车移动、2:RGV小车到位、3:rgv取货、4:rgv取货完成、5:Ste穿梭版入硫化罐、6:入罐完成、7:更新完成   //io_type = 5   STE  A面穿梭车
     * 1:RGV小车移动、2:RGV小车到位、3:Ste穿梭版取货、4:取货完成等待下一步、5:Ste穿梭版放货至冷却池、6:放货完成、7:更新完成   //io_type = 6  STE  B面穿梭车
     * 1:RGV小车移动、2:RGV小车到位、3:Ste穿梭版移动中、4:移动完成、5:更新完成   //io_type = 7  B=>C   、8 C=>B
     * 1:Ste穿梭版取放货中、2:放货完成等待下一步、3:输送线任务下发完成、4:更新完成   //io_type = 9   STE   末端输送线
     * 1:RGV小车移动、2:RGV小车到位、3:Ste穿梭版移动中、4:移动完成、5:更新完成   //io_type = 10、11
     * 1:RGV小车移动、2:RGV小车到位、3:Ste穿梭版移动中、4:移动完成、5:更新完成   //io_type = 10、11
     */
    @ApiModelProperty(value= "工作状态")
    @TableField("wrk_sts")
    private Integer wrkSts;
    /**
     * 任务类型 0: 未知  1: 开门  2: 关门  3: 入硫化罐  4: 入冷却槽  5: 穿梭车进冷却槽  6: 穿梭车离开冷却槽  7: 出冷却槽
     * 任务类型 0: 未知  1: 开进料门  2: 关进料门  3: 开出料门  4: 关出料门  5: 入硫化罐  6: 入冷却槽  7: 穿梭车进冷却槽  B=>C  8: 穿梭车离开冷却槽 C=>B  9: 出冷却槽 10:A=>B 11:B=>A
     */
    @ApiModelProperty(value= "任务类型 0: 未知  1: 开门  2: 关门  3: 入硫化罐  4: 入冷却槽  5: 穿梭车进冷却槽  6: 穿梭车离开冷却槽  7: 出冷却槽  ")
    @ApiModelProperty(value= "任务类型 0: 未知  1: 开进料门  2: 关进料门  3: 开出料门  4: 关出料门  5: 入硫化罐  6: 入冷却槽  7: 穿梭车进冷却槽  8: 穿梭车离开冷却槽  9: 出冷却槽 10:A=>B 11:B=>A ")
    @TableField("io_type")
    private Integer ioType;
    /**
     * 设备 0: 未知  1: 硫化罐  2: 冷却槽  
     */
    @ApiModelProperty(value= "设备 0: 未知  1: 硫化罐  2: 冷却槽  ")
    @ApiModelProperty(value= "设备 0: 未知  1: 硫化罐  2: 冷却槽  3: 硫化罐==>冷却槽  ")
    private Integer type;
    public WrkMastExecute() {}
@@ -173,6 +189,28 @@
        this.ioType = ioType;
        this.type = type;
    }
    public WrkMastExecute(BasJarMast basJarMast) {
        Date now = new Date();
        this.wrkNo = basJarMast.getWrkNo();
        this.enterStaNo = basJarMast.getEnterStaNo();           //入库源站点
        this.outStaNo = basJarMast.getOutStaNo();               //入库目标站点
        this.jarEnterStaNo = basJarMast.getJarEnterStaNo();     //入硫化罐站点
        this.jarOutStaNo = basJarMast.getJarOutStaNo();         //出硫化罐站点
//        this.jarId = jarId;
        this.jarRegin = basJarMast.getJarRegin();//区域
        this.status = 0;
//        this.steId = steId;
//        this.rgvId = rgvId;
        this.ioTime = basJarMast.getIoTime();
        this.modiTime = now;
        this.appeTime = now;
        this.wrkType = 0;
        this.wrkSts = 0;
//        this.ioType = ioType;
//        this.type = type;
    }
//    WrkMastExecute wrkMastExecute = new WrkMastExecute(
//            null,    // 工作号[非空]
@@ -238,25 +276,36 @@
        return null;
    }
    /**
     * 任务类型 0: 未知  1: 开进料门  2: 关进料门  3: 开出料门  4: 关出料门  5: 入硫化罐  6: 入冷却槽  7: 穿梭车进冷却槽  B=>C  8: 穿梭车离开冷却槽 C=>B  9: 出冷却槽 10:A=>B 11:B=>A
     */
    public String getIoType$(){
        if (null == this.ioType){ return null; }
        switch (this.ioType){
            case 0:
                return this.ioType+":未知";
            case 1:
                return this.ioType+":开门";
                return this.ioType+":开进料门";
            case 2:
                return this.ioType+":关门";
                return this.ioType+":关进料门";
            case 3:
                return this.ioType+":入硫化罐";
                return this.ioType+":开出料门";
            case 4:
                return this.ioType+":入冷却槽";
                return this.ioType+":关出料门";
            case 5:
                return this.ioType+":穿梭车进冷却槽";
                return this.ioType+":入硫化罐";
            case 6:
                return this.ioType+":穿梭车离开冷却槽";
                return this.ioType+":入冷却槽";
            case 7:
                return this.ioType+":穿梭车进冷却槽:B=>C";
            case 8:
                return this.ioType+":穿梭车离开冷却槽:C=>B";
            case 9:
                return this.ioType+":出冷却槽";
            case 10:
                return this.ioType+":A=>B";
            case 11:
                return this.ioType+":B=>A";
            default:
                return String.valueOf(this.ioType);
        }
@@ -276,5 +325,9 @@
        }
    }
    public Integer getWrkStsComplete(){
        return this.wrkSts+1;
    }
}