增加枚举

tags/yfai-mes-ext-v1.0
LML丶 1 year ago
parent a439883fdf
commit 3451fc5714

@ -690,6 +690,49 @@ public class MesExtEnumUtil {
}
/**
* -
*/
@JsonFormat(
shape = JsonFormat.Shape.OBJECT
)
public static enum PRODUCE_SN_STATUS {
CREATE(10, "创建"),
OFFLINE(30, "已完成"),
ASSEMBLY(20, "已装配"),
CHECKED(40, "已校验"),
SHIPPED(50, "发运");
private int value;
private String description;
private PRODUCE_SN_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