src/main/java/com/zy/asrs/controller/MatController.java
@@ -177,6 +177,12 @@ if (Cools.isEmpty(mat.getUnit())){ return R.error(BaseRes.PARAM); } if (!mat.getUnit().startsWith("6")&&!mat.getUnit().startsWith("7")&&!mat.getUnit().startsWith("8")){ throw new CoolException("托盘码首位不符合规范"); } if (mat.getUnit().length()!= 8){ throw new CoolException("托盘码不是八位,请检查"); } matBarcodeService.addBarcodeMatnrTwo(mat); return R.ok(); }