自动化立体仓库 - WMS系统
zhang
2025-09-26 2bf957a2e0379386934491563f81c90ebceee143
src/main/java/com/zy/asrs/utils/Utils.java
@@ -122,7 +122,8 @@
    public static String getShallowLoc(SlaveProperties slaveProperties, String deepLoc) {
        int row = getRow(deepLoc);
        int remainder = (int) Arith.remainder(row, slaveProperties.getGroupCount());
        int shallowRow = remainder == 1 ? (row + 1) : (row - 1);
//        int shallowRow = remainder == 1 ? (row + 1) : (row - 1);
        int shallowRow = row;
        return zerofill(String.valueOf(shallowRow), 2) + deepLoc.substring(2);
    }
@@ -241,7 +242,7 @@
    }
    public static boolean BooleanWhsTypeStaIoType(Integer whsType) {  //查询相似物料开关
        if (whsType == 1 || whsType==3 || whsType==4) {
        if (whsType == 1 ||whsType==2 || whsType==3 || whsType==4) {
            return true;
        }
        return false;
@@ -395,6 +396,7 @@
        RowLastnoService rowLastnoService = SpringUtils.getBean(RowLastnoService.class);
        RowLastno rowLastno = rowLastnoService.selectById(whsType);
        Integer sRow = rowLastno.getsRow();
        Integer eRow = rowLastno.geteRow();
        Integer sCrnNo = rowLastno.getsCrnNo();
        // 判断仓库类型是否满足要求
@@ -403,7 +405,7 @@
            // 计算最深库位排和最浅库位排
            int minRow = sRow;  // 起始排号
            int maxRow = sRow + 7;  // 终止排号 (8排)
            int maxRow = eRow;  //
            // 检查排号范围是否合法
            if (curRow < minRow || curRow > maxRow) {