自动化立体仓库 - WMS系统
#
LSH
2023-06-07 1af3b14449eb33792e606185c55643bca53efbb7
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -151,15 +151,15 @@
                waitPakin.setFrozen(param.getFrozen()); // 是否冻结
                waitPakin.setManu(detlDto.getCstmr());
                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("保存入库通知档失败");
                }
@@ -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("保存入库通知档失败");
                }