package com.zy.core.enums; public enum RgvTaskModeType { NONE((short) 0, "无"), PICK((short) 1, "取货"), RELEASE((short) 2, "放货"), PICK_RELEASE((short) 3, "取放货"), MOVE((short) 4, "移动(发工位1任务即可)"), ; public Short id; public String desc; RgvTaskModeType(Short id, String desc) { this.id = id; this.desc = desc; } public static RgvTaskModeType get(Short id) { if (null == id) { return null; } for (RgvTaskModeType type : RgvTaskModeType.values()) { if (type.id.equals(id)) { return type; } } return null; } public static RgvTaskModeType get(RgvTaskModeType type) { if (null == type) { return null; } for (RgvTaskModeType type1 : RgvTaskModeType.values()) { if (type1 == type) { return type1; } } return null; } }