自动化立体仓库 - WMS系统
dubin
15 小时以前 1cc361ec5fca7550ba01f0a6ecf058e84a5a20ad
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java
@@ -772,14 +772,18 @@
        if (Cools.isEmpty(wrkMast)) {
            throw new CoolException(workNo + "工作档不存在");
        }
        if (wrkMast.getWrkSts() == 4 || wrkMast.getWrkSts() >= 14) {
        if (wrkMast.getWrkSts() == 4 || (wrkMast.getWrkSts() >= 14 && wrkMast.getWrkSts() <= 15)) {
            throw new CoolException("当前工作档已完成");
        }
        // 入库 + 库位转移
        if (wrkMast.getWrkSts() < 4 || (wrkMast.getWrkSts() > 10 && wrkMast.getIoType() == 11)) {
            wrkMast.setWrkSts(4L);
            // 出库
        } else if (wrkMast.getWrkSts() > 10) {
        } else if (wrkMast.getWrkSts() > 10 && wrkMast.getWrkSts() < 15) {
            wrkMast.setWrkSts(14L);
        }else if(wrkMast.getWrkSts() >= 103 && wrkMast.getWrkSts() <= 105){
            wrkMast.setWrkSts(4L);
        }else if (wrkMast.getWrkSts() >= 106 && wrkMast.getWrkSts() <=108){
            wrkMast.setWrkSts(14L);
        }
        Date now = new Date();