package com.chinaztt.mes.warehouse.state.escort.constant;
|
|
/**
|
* @Author: cxf
|
* @Date: 2020-07-24 9:51
|
*/
|
public enum EscortStates {
|
/**
|
* 草稿
|
*/
|
DRAFT(EscortStateStringValues.DRAFT),
|
|
/**
|
* 已完成
|
*/
|
COMPLETED(EscortStateStringValues.COMPLETED);
|
|
private String stringValue;
|
|
public String getValue() {
|
return stringValue;
|
}
|
|
EscortStates(final String stringValue) {
|
this.stringValue = stringValue;
|
}
|
|
@Override
|
public String toString() {
|
return getValue();
|
}
|
|
public static EscortStates getEnum(String value) {
|
for (EscortStates v : values()) {
|
if (v.getValue().equalsIgnoreCase(value)) {
|
return v;
|
}
|
}
|
throw new IllegalArgumentException();
|
}
|
|
}
|