自动化立体仓库 - WMS系统
whycq
2023-08-26 82bcd0328dddbaad65933e2fada22bc68e82b3d5
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -105,7 +105,7 @@
        }
        Date now = new Date();
        int matType = 0;
        Integer matType = 0;
        // 无单组托
        if (Cools.isEmpty(param.getOrderNo())) {
@@ -156,7 +156,7 @@
                }else {
                    if (matType == 0){
                        matType = mat.getMatType();
                    }else if (matType!=mat.getMatType()){
                    }else if (!matType.equals(mat.getMatType())){
                        throw new CoolException("请组托同一类型的物料");
                    }
                }
@@ -211,15 +211,15 @@
                waitPakin.setModiUser(userId);
                waitPakin.setModiTime(now);
                waitPakin.setMatType(mat.getMatType());//物料类型
                if (Cools.isEmpty(mat.getMatType())){
                    throw new CoolException("物料类型异常"+mat.getMatnr());
                }else {
                    if (matType == 0){
                        matType = mat.getMatType();
                    }else if (matType!=mat.getMatType()){
                        throw new CoolException("请组托同一类型的物料");
                    }
                }
//                if (Cools.isEmpty(mat.getMatType())){
//                    throw new CoolException("物料类型异常"+mat.getMatnr());
//                }else {
//                    if (matType == 0){
//                        matType = mat.getMatType();
//                    }else if (matType!=mat.getMatType()){
//                        throw new CoolException("请组托同一类型的物料");
//                    }
//                }
                if (!waitPakinService.insert(waitPakin)) {
                    throw new CoolException("保存入库通知档失败");
                }