自动化立体仓库 - WCS系统
#
lsh
2024-06-25 f30358a20ae9a74ee7f6c604a8d102c1b9b24659
src/main/java/com/zy/asrs/entity/BasJarMast.java
@@ -139,9 +139,22 @@
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date appeTime;
    /**
     * 库位号
     */
    @ApiModelProperty(value= "库位号")
    @TableField("jar_loc_digit")
    private Integer jarLocDigit;
    /**
     * 冷却
     */
    @ApiModelProperty(value= "冷却")
    private Integer burial;
    public BasJarMast() {}
    public BasJarMast(Long wrkNo,Integer enterStaNo,Integer outStaNo,Integer jarEnterStaNo,Integer jarOutStaNo,Integer jarId,Integer jarRegin,Integer status,Integer enterSteNo,Integer outSteId,Integer enterRgvId,Integer outRgvId,Date ioTime,Date modiTime,Date appeTime) {
    public BasJarMast(Long wrkNo,Integer enterStaNo,Integer outStaNo,Integer jarEnterStaNo,Integer jarOutStaNo,Integer jarId,Integer jarRegin,Integer status,Integer enterSteNo,Integer outSteId,Integer enterRgvId,Integer outRgvId,Date ioTime,Date modiTime,Date appeTime,Integer jarLocDigit,Integer burial) {
        this.wrkNo = wrkNo;
        this.enterStaNo = enterStaNo;
        this.outStaNo = outStaNo;
@@ -157,7 +170,31 @@
        this.ioTime = ioTime;
        this.modiTime = modiTime;
        this.appeTime = appeTime;
        this.jarLocDigit = jarLocDigit;
        this.burial = burial;
    }
    public BasJarMast(BasJar jar,WrkMast wrkMast,Integer jarLocDigit) {
        Date now = new Date();
        this.wrkNo = wrkMast.getWrkNo().longValue();
        this.enterStaNo = wrkMast.getSourceStaNo();
        this.outStaNo = wrkMast.getStaNo();
//        this.jarEnterStaNo = jarEnterStaNo;
        this.jarOutStaNo = jar.getStaNo();
        this.jarId = jar.getJarNo();
        this.jarRegin = jar.getRegion();
        this.status = 0;
        this.enterSteNo = jar.getEnterSteNo();
        this.outSteId = jar.getOutSteNo();
        this.enterRgvId = jar.getEnterRgvNo();;
        this.outRgvId = jar.getOutRgvNo();;
        this.ioTime = wrkMast.getIoTime();
        this.modiTime = now;
        this.appeTime = now;
        this.jarLocDigit = jarLocDigit;
        this.burial = jar.getBurial();
    }
//    BasJarMast basJarMast = new BasJarMast(
//            null,    // 工作号[非空]
@@ -184,6 +221,35 @@
            return String.valueOf(basJarMastStatus.getId());
        }
        return null;
        /*
                statusList.add(15);//完成  输送线存在工作号《===》转历史档案
            case 5://小车移动至冷却槽任务  //出冷却槽任务 //开出料门任务
                statusList.add(10);//入冷却槽完成
            case 4://出硫化罐任务
                statusList.add(11);//冷却中
                if (type!=5){
                    statusList.add(12);//冷却完成
                }
                statusList.add(13);//出冷却槽中
                statusList.add(14);//出冷却槽完成
            case 3://关进料门任务  //生成初始任务
                statusList.add(4);//入硫化罐完成
            case 2://关进料门任务  //生成初始任务
                statusList.add(0);//初始
            case 1://开进料门任务
                statusList.add(2);//进料门打开
            case 0://入硫化罐任务
                statusList.add(1);//开进料门中
                statusList.add(3);//入硫化罐中
                statusList.add(5);//硫化中《===》关门完成
                if (type!=4){
                    statusList.add(6);//硫化完成
                }
                statusList.add(7);//开出料门中
                statusList.add(8);//出料门打开
                statusList.add(9);//出硫化罐中《===》入冷却槽中
        * */
    }
    public String getIoTime$(){