| | |
| | | WAITING(90, "任务完成等待WCS确认"), |
| | | FETCHWAITING(91, "取货任务完成等待WCS确认"), |
| | | SOS99(99, "报警99"), |
| | | SOS100(100, "其它100") |
| | | OTHER(100, "其它100") |
| | | ; |
| | | |
| | | public Integer id; |
| | |
| | | |
| | | public static RgvStatusType get(Short id) { |
| | | if (null == id) { |
| | | return null; |
| | | return OTHER; |
| | | } |
| | | for (RgvStatusType type : RgvStatusType.values()) { |
| | | if (type.id.equals(id.intValue())) { |
| | | return type; |
| | | } |
| | | } |
| | | return NONE; |
| | | return OTHER; |
| | | } |
| | | |
| | | public static RgvStatusType get(RgvStatusType type) { |
| | | if (null == type) { |
| | | return null; |
| | | return OTHER; |
| | | } |
| | | for (RgvStatusType rgvStatusType : RgvStatusType.values()) { |
| | | if (rgvStatusType == type) { |
| | | return rgvStatusType; |
| | | } |
| | | } |
| | | return null; |
| | | return OTHER; |
| | | } |
| | | } |