自动化立体仓库 - WCS系统
#
luxiaotao1123
2022-10-17 bfcee6dbd40dadac526a8d187efff97ac77b6e21
src/main/java/com/zy/asrs/utils/Utils.java
@@ -2,6 +2,7 @@
import com.core.common.Arith;
import com.core.common.Cools;
import com.zy.core.enums.SteABType;
import com.zy.core.properties.SlaveProperties;
import java.text.DecimalFormat;
@@ -36,8 +37,15 @@
        }
    }
    public static Integer getGroupRow(String locNo){
        int row = getRow(locNo);
        return getGroupRow(row);
    }
    public static Integer getGroupRow(Integer row) {
        switch (row) {
            case 0:
                return 0;
            case 1:
            case 2:
            case 3:
@@ -71,30 +79,9 @@
    }
    public static Integer getGroupRow(String locNo){
        int row = getRow(locNo);
        return getGroupRow(row);
    }
    // -------------------------------------------------------------------------------------------------------------------
@@ -254,6 +241,10 @@
    }
    public static String getLocNo(Number row, Number bay, Number lev) {
        return zerofill(String.valueOf(row), 2) + zerofill(String.valueOf(bay), 3) + zerofill(String.valueOf(lev), 2);
    }
    public static void main(String[] args) {
        SlaveProperties slaveProperties = new SlaveProperties();
        slaveProperties.setDoubleDeep(true);