zy-acs-common/src/main/java/com/zy/acs/common/enums/AgvDirectionType.java
@@ -4,7 +4,7 @@ LEFT(1), RIGHT(2), FORWARD(0), FORWARD(3), ; public int val; @@ -13,4 +13,13 @@ this.val = val; } public static AgvDirectionType fromVal(int val) { for (AgvDirectionType type : AgvDirectionType.values()) { if (type.val == val) { return type; } } throw new IllegalArgumentException("Invalid AgvDirectionType: " + val); } }