package com.zy.core.enums; /** * 入出库模式枚举 */ public enum IoModeType { NONE((short) 0, "未知"), PAKIN_BOOTING((short) 1, "入库启动中"), PAKIN_MODE((short) 2, "入库模式"), PAKOUT_BOOTING((short) 3, "出库启动中"), PAKOUT_MODE((short) 4, "出库模式"), ; public Short id; public String desc; IoModeType(Short id, String desc) { this.id = id; this.desc = desc; } public static IoModeType get(Short id) { for (IoModeType type : IoModeType.values()) { if (id.equals(type.id)) { return type; } } return IoModeType.NONE; } }