自动化立体仓库 - WCS系统
#
zjj
2024-11-05 cdc12aeeb8aca9061796a27ecc2ceb3aa61c3737
#
1个文件已修改
20 ■■■■■ 已修改文件
src/main/java/com/zy/core/enums/RgvStatusType.java 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/enums/RgvStatusType.java
@@ -8,21 +8,27 @@
    OFFLINE((short) -1, "离线"),
    IDLE((short) 0, "空闲"),
    PICK_WALK((short) 1, "取货走行"),
    PICK_WALK2((short) 21, "取货走行2"),
    PICK_WAIT((short) 2, "取货等待"),
    PICK_WAIT2((short) 22, "取货等待2"),
    PICK_WORKING((short) 3, "取货中"),
    PICK_WORKING2((short) 23, "取货中2"),
    RELEASE_WALK((short) 4, "放货走行"),
    RELEASE_WALK2((short) 24, "放货走行2"),
    OUTSTN1((short)5,"工作位1请求出站"),
    OUTSTN8((short)6,"工作位2请求出站"),
    OUTSTN8((short)25,"工作位2请求出站"),
    WALKING((short) 7, "放货中"),
    WALKING2((short) 8, "等待货位2任务执行"),
    WALKING((short) 6, "放货中"),
//    WALKING2((short) 26, "放货中2"),
    WALKING2((short) 26, "等待货位2任务执行"),
    WAITING((short) 90, "工位一任务完成等待WCS确认"),
    WAITING2((short) 91, "工位二任务完成等待WCS确认"),
    WAITING3((short)98,"联机任务中断"),
    ALARM((short) 99, "报警"),
    OTHER((short) 100, "其他"),
    OTHER1000((short) 1000, "未知"),
    ;
    public Short id;
    public String desc;
@@ -34,25 +40,25 @@
    public static RgvStatusType get(Short id) {
        if (null == id) {
            return null;
            return OTHER1000;
        }
        for (RgvStatusType type : RgvStatusType.values()) {
            if (type.id.equals(id)) {
                return type;
            }
        }
        return null;
        return OTHER1000;
    }
    public static RgvStatusType get(RgvStatusType type) {
        if (null == type) {
            return null;
            return OTHER1000;
        }
        for (RgvStatusType type1 : RgvStatusType.values()) {
            if (type1 == type) {
                return type1;
            }
        }
        return null;
        return OTHER1000;
    }
}