自动化立体仓库 - WMS系统
#
ytfl
5 天以前 cb985961bcfbd5d0c9191c914c2e268504659bfe
src/main/java/com/zy/asrs/utils/Utils.java
@@ -116,6 +116,9 @@
     */
    public static String getShallowLoc(SlaveProperties slaveProperties, String deepLoc) {
        int row = getRow(deepLoc);
        if (row ==1 || row == 6){
            return deepLoc;
        }
        boolean deepLocLeft = isDeepLocLeft(slaveProperties, row);//判断是否为左深库位
        int shallowRow = deepLocLeft ? (row + 1) : (row - 1);
        return zerofill(String.valueOf(shallowRow), 2) + deepLoc.substring(2);
@@ -143,8 +146,8 @@
        if (row == 1 || row == 6) {
            return null;
        }
        //2,7,11,15,19,23
        if (row == 2 || row == 8 || row == 12 || row == 16 || row == 20 || row == 24) {
        //2,8,11,15,19,23
        if (row == 5 || row == 8 || row == 12 || row == 16 || row == 20 || row == 24) {
            return zerofill(String.valueOf(row - 1), 2) + shallowLoc.substring(2);
        } else {
            return zerofill(String.valueOf(row + 1), 2) + shallowLoc.substring(2);