【[#2702::07 ext 虚拟工单关闭按钮(注塑、涂装、组装) ] 】

yun-zuoyi
陈思洁 5 years ago
parent df2342e097
commit 03730fe13c

@ -7055,4 +7055,41 @@ public class MesEnumUtil {
return tmp; return tmp;
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_START_CACHE_STATUS {
PENDING(10, "待处理"),
PROCESSED(20, "已处理");
private int value;
private String description;
WORK_START_CACHE_STATUS(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