新增 枚举

tags/yfai-mes-ext-v1.0
LML丶 1 year ago
parent a680d658ef
commit 5b820c8715

@ -728,6 +728,43 @@ public class MesExtEnumUtil {
return this.description;
}
}
/**
* -
*/
@JsonFormat(
shape = JsonFormat.Shape.OBJECT
)
public static enum PART_PULL_ORDER_TYPE {
KITTING_PULL(10, "KITTING拉动");
private int value;
private String description;
private PART_PULL_ORDER_TYPE(int value, String description) {
this.value = value;
this.description = 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;
}
public int getValue() {
return this.value;
}
public String getDescription() {
return this.description;
}
}
/**
* -

Loading…
Cancel
Save