自动化立体仓库 - WMS系统
zjj
2025-02-17 bf95c4cc8a776ed01cfdf3d292ad0840f546b2b8
src/main/java/com/zy/asrs/utils/Utils.java
@@ -16,10 +16,7 @@
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.*;
/**
 * Created by vincent on 2020/8/27
@@ -27,6 +24,24 @@
public class Utils {
    private static final DecimalFormat fmt = new DecimalFormat("##0.00");
    public static String getStaName(Integer sta){
        HashMap<Integer, String> map = new HashMap<>();
        map.put(113,"Ctu库102");map.put(115,"Ctu库101");
        map.put(204,"Ctu库201");map.put(304,"Ctu库301");
        map.put(31001,"四向库101");
        map.put(1024,"堆垛机库北1号出库口");map.put(1028,"堆垛机库北2号出库口");
        map.put(1040,"堆垛机库南1号入库口");map.put(1042,"堆垛机库南1号出库口");
        map.put(2000,"堆垛机库北2楼出入库口");map.put(2002,"堆垛机库北二楼出库口");
        map.put(2010,"堆垛机库南二楼出入库口");map.put(2012,"堆垛机库南二楼出库口");
        map.put(3010,"堆垛机库南三楼出入库口");map.put(3012,"堆垛机库南三楼出库口");
        return map.get(sta);
    }
    public static boolean isNorth(Integer sourceStaNo){
        if ((sourceStaNo>1000 && sourceStaNo < 1040) || (sourceStaNo>2000 && sourceStaNo > 2010)|| (sourceStaNo > 3000 && sourceStaNo < 3010)){
@@ -511,17 +526,27 @@
        curRow = curRow - offset;
        //满板正常入库
        switch (curRow){
            case 1:
                necessaryParameters[1] = 4;    //curRow   最深库位排
            case 2:
                necessaryParameters[1] = 5;    //curRow   最深库位排
                necessaryParameters[2] = sCrnNo;     //crnNo     堆垛机号
                necessaryParameters[3] = 4;    //nearRow  最浅库位排
                break;
            case 5:
                necessaryParameters[1] = 6;    //curRow   最深库位排
                necessaryParameters[2] = sCrnNo;     //crnNo     堆垛机号
                necessaryParameters[3] = 7;    //nearRow  最浅库位排
                break;
            case 4:
                necessaryParameters[1] = 9;    //curRow   最深库位排
            case 6:
                necessaryParameters[1] = 10;    //curRow   最深库位排
                necessaryParameters[2] = sCrnNo;     //crnNo     堆垛机号
                necessaryParameters[3] = 9;    //nearRow  最浅库位排
                break;
            case 10:
                necessaryParameters[1] = 11;    //curRow   最深库位排
                necessaryParameters[2] = sCrnNo;     //crnNo     堆垛机号
                necessaryParameters[3] = 12;    //nearRow  最浅库位排
                break;
            case 9:
            case 11:
                necessaryParameters[1] = 14;    //curRow   最深库位排
                necessaryParameters[2] = sCrnNo;     //crnNo     堆垛机号
                necessaryParameters[3] = 14;    //nearRow  最浅库位排