自动化立体仓库 - WCS系统
#
yxFwq
2024-07-19 2b4b495c41695a21b10c548599a0af98e984eda5
src/main/java/com/zy/asrs/entity/BasJarMast.java
@@ -195,6 +195,24 @@
        this.burial = jar.getBurial();
    }
    public BasJarMast(BasJar jar) {
        Date now = new Date();
//        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 = now;
        this.modiTime = now;
        this.appeTime = now;
        this.jarLocDigit = jarLocDigit;
        this.burial = jar.getBurial();
    }
//    BasJarMast basJarMast = new BasJarMast(
//            null,    // 工作号[非空]
@@ -297,5 +315,28 @@
        return this.status+1;
    }
    /**
     * ioType任务类型
     * 0: 未知  1: 开进料门  2: 关进料门  3: 开出料门  4: 关出料门  5: 入硫化罐  6: 入冷却槽
     * 7: 穿梭车进冷却槽  B=>C  8: 穿梭车离开冷却槽 C=>B  9: 出冷却槽 10:A=>B 11:B=>A
     */
    public Integer getStatusComplete(Integer ioType){
        switch (ioType){
            case 1:
                return 2;
            case 3:
                return 8;
            case 2:
                return 5;
            case 5:
                return 4;
            case 6:
                return 10;
            case 9:
                return 17;
        }
        return this.status+1;
    }
}