| | |
| | | package com.doumee.core.constants; |
| | | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.Getter; |
| | | |
| | | import java.util.*; |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | public enum workOrderStatus{ |
| | | public enum WorkOrderStatus{ |
| | | waitConfirm( 0, "待分配WTS","待分配WTS",""), |
| | | waitAllocation(1, "待分配任务","待分配任务",""), |
| | | waitDeal(2, "待处理","待处理",""), |
| | |
| | | private String logTitle; |
| | | private String noticeContent; |
| | | |
| | | public int getStatus() { |
| | | // 构造方法 |
| | | WorkOrderStatus(int status, String statusInfo,String logTitle,String noticeContent ) { |
| | | this.status = status; |
| | | this.statusInfo = statusInfo; |
| | | this.logTitle = logTitle; |
| | | this.noticeContent = noticeContent; |
| | | } |
| | | public static String getName(int index) { |
| | | for (WorkOrderStatus c : WorkOrderStatus.values()) { |
| | | if (c.getKey() == index) { |
| | | return c.statusInfo; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public int getKey() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(int status) { |
| | | public void setKey(int key) { |
| | | this.status = status; |
| | | } |
| | | |