添加工步类型枚举

Signed-off-by: crish <570360737@qq.com>
yun-zuoyi
crish 6 years ago
parent 7f3f39af06
commit 7aec1fdb6a

@ -12,6 +12,44 @@ import com.fasterxml.jackson.annotation.JsonFormat;
public class MesEnumUtil {
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_STEP_TYPE {
COMMON_STEP("10", "公用工步"),
JIT_STEP("20", "JIT工步"),
WORK_ORDER_STEP("30", "工单工步"),
BACK_STEP("40", "后台工步");
private String value;
private String description;
MES_STEP_TYPE(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;
}
}
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)

Loading…
Cancel
Save