增加枚举

tags/yfai-mes-ext-v1.0
LML丶 1 year ago
parent 8ad6fbaa81
commit 208a070319

@ -732,6 +732,46 @@ public class MesExtEnumUtil {
}
/**
* -
*/
@JsonFormat(
shape = JsonFormat.Shape.OBJECT
)
public static enum PRODUCE_QC_STATUS {
QUALIFIED(10, "合格"),
SUSPICIOUS(20, "可疑"),
SCRAP(30, "报废");
private int value;
private String description;
private PRODUCE_QC_STATUS(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;
}
}
/**
* -
*/
@JsonFormat(

Loading…
Cancel
Save