自动化立体仓库 - WCS系统
*
lsh
6 天以前 f287ab5ee6b9938e0d48cdb62c05078bdec463d8
src/main/java/com/zy/core/enums/RgvStatusType.java
@@ -11,7 +11,7 @@
    WAITING(90, "任务完成等待WCS确认"),
    FETCHWAITING(91, "取货任务完成等待WCS确认"),
    SOS99(99, "报警99"),
    SOS100(100, "其它100")
    OTHER(100, "其它100")
    ;
    public Integer id;
@@ -23,25 +23,25 @@
    public static RgvStatusType get(Short id) {
        if (null == id) {
            return null;
            return OTHER;
        }
        for (RgvStatusType type : RgvStatusType.values()) {
            if (type.id.equals(id.intValue())) {
                return type;
            }
        }
        return NONE;
        return OTHER;
    }
    public static RgvStatusType get(RgvStatusType type) {
        if (null == type) {
            return null;
            return OTHER;
        }
        for (RgvStatusType rgvStatusType : RgvStatusType.values()) {
            if (rgvStatusType == type) {
                return rgvStatusType;
            }
        }
        return null;
        return OTHER;
    }
}