自动化立体仓库 - WMS系统
lsh
2024-08-21 6d2fa862707301c65b14a383ff8623938afbd76b
src/main/java/com/zy/common/service/CommonService.java
@@ -117,6 +117,7 @@
        ArrayList<Integer> rows = new ArrayList<>();
        switch (sourceStaNo) {
            case 103://103入库站
            case 113://103入库站
                whsType = 1;
                start = 1;
                end = 14;
@@ -133,6 +134,7 @@
                crnNo = 1;
                break;
            case 203://203入库站
            case 213://203入库站
                whsType = 2;
                start = 8;
                end = 21;
@@ -178,9 +180,12 @@
                    throw new CoolException("混放物料类型不一致");
                }
            }
            if (!matTypeIn.equals(0)) {
                matType = matTypeIn;
            if (!Cools.isEmpty(matTypeIn)) {
                if (!matTypeIn.equals(0)) {
                    matType = matTypeIn;
                }
            }
            if (matNos.size() > 1 && matType == 1) {
                //物料为单品类型,且物料种类超过1(实际为高频混放),则禁止入库
                throw new CoolException("物料类型和实际种类不一致");