自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-11 7cae09c8b65a1458089065d532de3691851b066d
src/main/java/com/zy/common/service/CommonService.java
@@ -87,9 +87,9 @@
            int sRow = rowLastno.getsRow();
            int eRow = rowLastno.geteRow();
            int crn_qty = rowLastno.getCrnQty();
            int rowCount = eRow - sRow + 1;
            // 获取目标站所在货架排号
            Shelves shelves = new Shelves(8, crn_qty);
            Shelves shelves = new Shelves(rowCount, crn_qty);
            curRow = shelves.start(curRow);
            if (curRow < 0) {
                throw new CoolException("检索库位失败,请联系管理员");
@@ -122,11 +122,13 @@
            if (staNo.getInEnable().equals("Y") && staNo.getAutoing().equals("Y") && inQty<2) {
                // 查找库位 todo
                LocMast locMast = locMastService.queryFreeLocMast(curRow, 1);
                locNo = locMast.getLocNo();
                rowLastno.setCurrentRow(curRow);
                rowLastnoService.updateById(rowLastno);
            } else {
                throw new CoolException("目标站不可用");
            }
            rowLastno.setCurrentRow(curRow);
            rowLastnoService.updateById(rowLastno);
        }
        return locNo;
    }