自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-09-21 29e419e8c829adc98e3c6dc79b9dda9ce3e02be6
src/main/java/com/zy/common/service/CommonService.java
@@ -190,6 +190,9 @@
        if (null == locMast) {
            Shelves shelves = new Shelves(rowCount, crn_qty);
            for (int i = 0; i < shelves.group; i ++) {
                if (i > 0) {
                    curRow = currentRow;
                }
                curRow = shelves.start(curRow);
                if (curRow < 0) {
                    throw new CoolException("检索库位失败,请联系管理员");
@@ -269,7 +272,16 @@
        if (locMast == null) {
            List<Integer> rows = Utils.getGroupLoc(curRow);
            locMast = locMastService.queryFreeLocMast(null, rows, rows.size(), locTypeDto.getLocType1());
            List<LocMast> locMasts = locMastService.queryFreeLocMast(rows, rows.size(), locTypeDto.getLocType1());
            if (!Cools.isEmpty(locMasts)) {
                Integer innermostRow = Utils.getInnermostRow(locMasts.get(0).getLocNo());
                for (LocMast one : locMasts) {
                    if (one.getRow1().equals(innermostRow)) {
                        locMast = one;
                        break;
                    }
                }
            }
            // 因库位移转、需预留空库位
//            if (!locMastService.checkEmptyCount(locMast)) {
//                locMast = null;