自动化立体仓库 - WCS系统
#
Junjie
2025-04-10 1d624dfdb040825ffecba6c792c480be662b2dbc
src/main/java/com/zy/common/service/CommonService.java
@@ -124,18 +124,18 @@
            throw new CoolException("源库位不存在");
        }
        if (!sourceLocMast.getLocSts().equals("F")) {
            throw new CoolException("源库位不处于在库状态");
        }
//        if (!sourceLocMast.getLocSts().equals("F")) {
//            throw new CoolException("源库位不处于在库状态");
//        }
        LocMast locMast = locMastService.queryByLoc(param.getLocNo());
        if (null == locMast) {
            throw new CoolException("目标库位不存在");
        }
        if (!locMast.getLocSts().equals("O")) {
            throw new CoolException("目标库位不处于空库状态");
        }
//        if (!locMast.getLocSts().equals("O")) {
//            throw new CoolException("目标库位不处于空库状态");
//        }
        // 获取工作号
        int workNo = getWorkNo(WrkIoType.LOC_MOVE.id);
@@ -157,13 +157,13 @@
            throw new CoolException("保存工作档失败");
        }
        sourceLocMast.setLocSts("R");
        sourceLocMast.setModiTime(new Date());
        locMastService.updateById(sourceLocMast);
        locMast.setLocSts("S");
        locMast.setModiTime(new Date());
        locMastService.updateById(locMast);
//        sourceLocMast.setLocSts("R");
//        sourceLocMast.setModiTime(new Date());
//        locMastService.updateById(sourceLocMast);
//
//        locMast.setLocSts("S");
//        locMast.setModiTime(new Date());
//        locMastService.updateById(locMast);
        return true;
    }