zjj
2024-05-07 ab18ecb1c25613535c2047467cf8c14d3b41b047
src/main/java/com/zy/core/enums/RgvModeType.java
@@ -5,16 +5,17 @@
 */
public enum RgvModeType {
    STOP((short) 0, "停机模式"),
    MANUAL((short) 1, "手动模式"),
    AUTO((short) 2, "自动模式"),
    COMPUTER((short) 3, "电脑模式"),
    NONE(-1, "离线"),
    STOP(0, "关机"),
    HAND(1, "手动"),
    HALF_AUTO(2, "半自动"),
    AUTO(3, "自动"),
    AUTO2(100, "其它"),
    ;
    public Short id;
    public Integer id;
    public String desc;
    RgvModeType(Short id, String desc) {
    RgvModeType(Integer id, String desc) {
        this.id = id;
        this.desc = desc;
    }
@@ -24,7 +25,7 @@
            return null;
        }
        for (RgvModeType type : RgvModeType.values()) {
            if (type.id.equals(id)) {
            if (type.id.equals(id.intValue())) {
                return type;
            }
        }
@@ -35,9 +36,9 @@
        if (null == type) {
            return null;
        }
        for (RgvModeType type1 : RgvModeType.values()) {
            if (type1 == type) {
                return type1;
        for (RgvModeType rgvModeType : RgvModeType.values()) {
            if (rgvModeType == type) {
                return rgvModeType;
            }
        }
        return null;