自动化立体仓库 - WMS系统
野心家
2 天以前 4fccd3709649b7b7ab43d6f8a6c62fd72b3123c6
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -94,11 +94,19 @@
            throw new CoolException(param.getBarcode() + "数据正在进行入库");
        }
        if(param.getBarcode().length()!=8){
            throw new CoolException("条码长度不是8位===>>" + param.getBarcode());
        }
//        if(param.getBarcode().length()!=8){
//            throw new CoolException("条码长度不是8位===>>" + param.getBarcode());
//        }
        if (param.getCombMats().size()>1){
            throw new CoolException("不允许混料===>>" + param.getBarcode());
        }
        Mat mat1 = matService.selectByMatnr(param.getCombMats().get(0).getMatnr());
        if(!Cools.isEmpty(mat1)){
            param.getCombMats().get(0).setBatch(mat1.getMatnr());
            param.getCombMats().get(0).setAnfme(mat1.getPrice());
        }
        if(Cools.isEmpty(param.getCombMats().get(0).getBatch())){
            throw new CoolException("批号(唯一码)不能为空===>>" + param.getBarcode());
        }
        int countLoc = locDetlService.selectCount(new EntityWrapper<LocDetl>().eq("zpallet",param.getBarcode()));
@@ -150,7 +158,7 @@
        // 关联组托
        } else {
            Order order = orderService.selectByNo(param.getOrderNo());
            if (order.getSettle() > 2) {
            if (Cools.isEmpty(order) || order.getSettle() > 2) {
                throw new CoolException("单据编号已过期");
            }
            // 生成入库通知档