停开机记录bug修改

tags/yfai-mes-ext-v1.0
yxw 2 years ago
parent 9d3ebba116
commit fc1696aa39

@ -4632,4 +4632,50 @@ public class MesExtEnumUtil {
}
}
/**
* mes 使
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MANAGE_USE_STATUS {
LEISURE("10", "空闲"),
OCCUPY("20", "占用");
private String value;
private String description;
MANAGE_USE_STATUS(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(val)) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String descriptionOfValue(String description) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
}

Loading…
Cancel
Save