自动化立体仓库 - WCS系统
*
lsh
2025-03-10 3c2450c66d792b2e020ab954e902df9706f1cd7d
src/main/java/com/zy/asrs/utils/Utils.java
@@ -87,8 +87,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 remainder = (int) Arith.remainder(row, slaveProperties.getGroupCount());
        int shallowRow ;
        if(row==31){
            shallowRow = row + 1;
        }else if(row==34){
@@ -130,11 +130,11 @@
     * 获取 浅库位排对应的深库位排
     */
    public static Integer getDeepRow(SlaveProperties slaveProperties, Integer shallowRow) {
        int remainder = (int) Arith.remainder(shallowRow, slaveProperties.getGroupCount());
//        int remainder = (int) Arith.remainder(shallowRow, slaveProperties.getGroupCount());
        int targetRow;
        if (remainder == 2) {
        if (shallowRow == 32) {
            targetRow = shallowRow - 1;
        } else if (remainder == 3) {
        } else if (shallowRow == 33) {
            targetRow = shallowRow + 1;
        } else {
            throw new RuntimeException(shallowRow + "不是浅库位排,系统繁忙");