zhang
2025-06-13 ae54e42cbe354ef5c39954eed2eab18de9504946
src/main/java/com/zy/asrs/utils/Utils.java
@@ -3,7 +3,6 @@
import com.core.common.Arith;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.entity.LocMast;
import com.zy.core.model.CrnSlave;
import com.zy.core.properties.SlaveProperties;
@@ -60,8 +59,6 @@
    }
    //转换wms传输的库位号
    public static String getWcsLocNo(String locNo){
        String[] split = locNo.split("-");
@@ -116,9 +113,9 @@
        }
        return wcsLocNo;
    }
    public static int[] getWcsRow(String row){
        int[] array = null;
        switch (row){
@@ -227,12 +224,17 @@
        int shallowRow  = getShallowRow(row);
        return zerofill(String.valueOf(shallowRow), 2) + deepLoc.substring(2);
    }
    public static int getShallowRow(Integer row){
        Map<Integer, Integer> map = new HashMap<>();
        map.put(1,2);map.put(4,3);
        map.put(7,8);map.put(10,9);
        map.put(11,12);map.put(14,13);
        map.put(15,16);map.put(18,17);
        map.put(1, 2);
        map.put(4, 3);
        map.put(7, 8);
        map.put(10, 9);
        map.put(11, 12);
        map.put(14, 13);
        map.put(15, 16);
        map.put(18, 17);
        map.put(19,20);
        return map.get(row);
    }