Junjie
2023-07-27 84a9e3a9a624526116b42ab15e27ec852eaa7c21
src/main/java/com/zy/core/enums/ShuttleStatusType.java
@@ -2,28 +2,27 @@
/**
 * 四向穿梭车
 * Wm200 小车忙状态位
 */
public enum ShuttleStatusType {
    IDLE((short)0, "空闲"),
    BUSY((short)1, "忙"),
    IDLE(1, "空闲"),
    BUSY(0, "忙"),
    ;
    public Short id;
    public Integer id;
    public String desc;
    ShuttleStatusType(Short id,String desc) {
    ShuttleStatusType(Integer id,String desc) {
        this.id = id;
        this.desc = desc;
    }
    public static ShuttleStatusType get(Short id) {
    public static ShuttleStatusType get(Integer id) {
        if (null == id) {
            return null;
        }
        for (ShuttleStatusType type : ShuttleStatusType.values()) {
            if (type.id.equals(id.shortValue())) {
            if (type.id == id) {
                return type;
            }
        }