自动化立体仓库 - WMS系统
#
yxFwq
2025-04-01 74fd6eb7fb0322078f7946f51073f20e90231df1
src/main/java/com/zy/common/model/enums/JarStatusType.java
@@ -3,10 +3,15 @@
public enum JarStatusType {
    IDLE(0, "空闲"),
    MOVING(1, "作业中"),
    SOS(2, "报警"),
    WAITING(10, "等待确认"),
    OFF_LINE(-1, "未知"),
    MOVING(1, "开门"),
    SOS(2, "充压中"),
    WAITING1(3, "开门"),
    WAITING2(4, "硫化完成"),
    WAITING3(5, "门打开中"),
    WAITING4(6, "门打开中"),
    WAITING5(7, "门关闭中"),
    OFF_LINE(8, "门关闭中"),
    SOS2(9, "保温中"),
    OTHER(100, "其它"),
    ;
@@ -19,25 +24,25 @@
    public static JarStatusType get(Integer id) {
        if (null == id) {
            return null;
            return OTHER;
        }
        for (JarStatusType type : JarStatusType.values()) {
            if (type.id.equals(id)) {
                return type;
            }
        }
        return OFF_LINE;
        return OTHER;
    }
    public static JarStatusType get(JarStatusType type) {
        if (null == type) {
            return null;
            return OTHER;
        }
        for (JarStatusType jarStatusType : JarStatusType.values()) {
            if (jarStatusType == type) {
                return jarStatusType;
            }
        }
        return null;
        return OTHER;
    }
}