1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| package com.vincent.rsf.server.manager.enums;
|
| public enum LocStatusType {
|
| //空板
| NORMAL(1, "正常"),
| FREEZE(0,"冻结"),
| ;
|
| public Integer type;
|
| public String desc;
|
| LocStatusType(Integer type, String desc) {
| this.type = type;
| this.desc = desc;
| }
|
|
| public static LocStatusType get(String el) {
| for (LocStatusType value : LocStatusType.values()) {
| if (el.equals(value.toString())) {
| return value;
| }
| }
| return null;
| }
|
|
| }
|
|