package com.zy.asrs.domain.enums; public enum NotifyMsgType { //任务 TASK_COMPLETE("task_complete", "任务完成"), TASK_CANCEL("task_cancel", "任务取消"), CRN_IN_TASK_RUN("crn_in_task_run", "堆垛机入库任务执行中"), CRN_IN_TASK_COMPLETE("crn_in_task_complete", "堆垛机入库任务执行完成"), CRN_OUT_TASK_RUN("crn_out_task_run", "堆垛机出库任务执行中"), CRN_OUT_TASK_COMPLETE("crn_out_task_complete", "堆垛机出库任务执行完成"), CRN_TRANSFER_TASK_RUN("crn_transfer_task_run", "堆垛机移库任务执行中"), CRN_TRANSFER_TASK_COMPLETE("crn_transfer_task_complete", "堆垛机移库任务执行完成"), DUAL_CRN_IN_TASK_RUN("dual_crn_in_task_run", "双工位堆垛机入库任务执行中"), DUAL_CRN_IN_TASK_COMPLETE("dual_crn_in_task_complete", "双工位堆垛机入库任务执行完成"), DUAL_CRN_OUT_TASK_RUN("dual_crn_out_task_run", "双工位堆垛机出库任务执行中"), DUAL_CRN_OUT_TASK_COMPLETE("dual_crn_out_task_complete", "双工位堆垛机出库任务执行完成"), DUAL_CRN_TRANSFER_TASK_RUN("dual_crn_transfer_task_run", "双工位堆垛机移库任务执行中"), DUAL_CRN_TRANSFER_TASK_COMPLETE("dual_crn_transfer_task_complete", "双工位堆垛机移库任务执行完成"), ; public String flag; public String desc; NotifyMsgType(String flag, String desc) { this.flag = flag; this.desc = desc; } public static NotifyMsgType get(String flag) { if (null == flag) { return null; } for (NotifyMsgType type : NotifyMsgType.values()) { if (type.flag.equals(flag)) { return type; } } return null; } public static NotifyMsgType get(NotifyMsgType type) { if (null == type) { return null; } for (NotifyMsgType type2 : NotifyMsgType.values()) { if (type2 == type) { return type2; } } return null; } }