| | |
| | | DRAFT(0, "未提交"), |
| | | PROCESS(10, "审批中"), |
| | | APPROVE(20, "审核通过"), |
| | | REJECT(30, "审核不通过"), |
| | | CANCEL(40, "已取消"); |
| | | REJECT(30, "审核不通过"), |
| | | CANCEL(40, "已取消"), |
| | | INVALID(50, "已作废"); |
| | | |
| | | private final Integer status; |
| | | private final String name; |
| | | |
| | | public static final Integer[] ARRAYS = Arrays.stream(values()).map(CrmAuditStatusEnum::getStatus).toArray(Integer[]::new); |
| | | |
| | | public static String getNameByStatus(Integer status) { |
| | | if (status == null) return null; |
| | | for (CrmAuditStatusEnum e : values()) { |
| | | if (e.getStatus().equals(status)) return e.getName(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public Integer[] array() { |
| | | return ARRAYS; |