数据抽取修改 1116

yun-zuoyi
WYnneaoapc 6 years ago
parent 457e10bc75
commit 1de5b8b196

@ -1900,4 +1900,37 @@ public class MesPcnEnumUtil {
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ONLINE_SEND_TYPE {
PLC(10, "PLC"),
DB(20, "DB");
private int value;
private String description;
ONLINE_SEND_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

Loading…
Cancel
Save