package com.zy.core.enums;
|
|
import com.core.exception.CoolException;
|
|
public enum WrkStsType {
|
|
NEW_INBOUND(1, "生成入库任务"),
|
INBOUND_DEVICE_RUN(2, "设备上走"),
|
INBOUND_LIFT_RUN(3, "提升机搬运中"),
|
INBOUND_LIFT_RUN_COMPLETE(4, "提升机搬运完成"),
|
INBOUND_SHUTTLE_RUN(5, "小车搬运中"),
|
INBOUND_SHUTTLE_RUN_COMPLETE(6, "小车搬运完成"),
|
COMPLETE_INBOUND(9, "入库完成"),
|
SETTLE_INBOUND(10, "入库库存更新"),
|
|
NEW_OUTBOUND(101, "生成出库任务"),
|
OUTBOUND_SHUTTLE_RUN(102, "小车搬运中"),
|
OUTBOUND_SHUTTLE_RUN_COMPLETE(103, "小车搬运完成"),
|
OUTBOUND_LIFT_RUN(104, "提升机搬运中"),
|
OUTBOUND_LIFT_RUN_COMPLETE(105, "提升机搬运完成"),
|
COMPLETE_OUTBOUND(109, "出库完成"),
|
SETTLE_OUTBOUND(110, "出库库存更新"),
|
|
NEW_CHARGE(201, "生成充电任务"),
|
CHARGE_SHUTTLE_RUN(202, "小车前往充电桩"),
|
CHARGE_SHUTTLE_RUN_COMPLETE(203, "小车到达充电桩"),
|
CHARGE_SHUTTLE_WORKING(204, "小车充电中"),
|
CHARGE_SHUTTLE_COMPLETE(205, "小车充电完成"),
|
COMPLETE_CHARGE(210, "充电任务完成"),
|
|
NEW_MOVE(301, "生成迁移任务"),
|
MOVE_SITE(302, "小车移动至站点"),
|
MOVE_SITE_COMPLETE(303, "小车移动至站点完成"),
|
MOVE_IN_LIFT(304, "小车迁入提升机中"),
|
MOVE_IN_LIFT_COMPLETE(305, "小车迁入提升机完成"),
|
MOVE_LIFT_RUN(306, "提升机搬运中"),
|
MOVE_LIFT_RUN_COMPLETE(307, "提升机搬运完成"),
|
MOVE_OUT_LIFT(308, "小车迁出提升机中"),
|
MOVE_OUT_LIFT_COMPLETE(309, "小车迁出提升机完成"),
|
MOVE_SHUTTLE(310, "小车移动中"),
|
COMPLETE_MOVE(311, "小车移动完成"),
|
|
NEW_MANUAL(401, "生成手动任务"),
|
ANALYZE_MANUAL(402, "手动任务解析"),
|
EXECUTE_MANUAL(403, "执行手动任务"),
|
COMPLETE_MANUAL(410, "手动任务完成"),
|
|
NEW_LOC_MOVE(501, "生成移库任务"),
|
LOC_MOVE_SHUTTLE_RUN(502, "小车搬运中"),
|
COMPLETE_LOC_MOVE(509, "移库完成"),
|
;
|
|
|
public long sts;
|
public String desc;
|
|
WrkStsType(long sts, String desc) {
|
this.sts = sts;
|
this.desc = desc;
|
}
|
|
public static WrkStsType query(Long sts) {
|
for (WrkStsType value : WrkStsType.values()) {
|
if (value.sts == sts) {
|
return value;
|
}
|
}
|
throw new CoolException("TaskStsType Error!!!");
|
}
|
|
}
|