新增 枚举

tags/yfai-mes-ext-v1.0
LML丶 1 year ago
parent 330f9aed05
commit aae21468f5

@ -59,7 +59,7 @@ public class MesExtEnumUtil {
shape = JsonFormat.Shape.OBJECT
)
public static enum ORDER_TYPE_IDENTIFICATION {
N(10, "N"),
S(10, "S"),
P(20, "P"),
E(30, "E");
@ -93,6 +93,50 @@ public class MesExtEnumUtil {
}
/**
*
*/
@JsonFormat(
shape = JsonFormat.Shape.OBJECT
)
public static enum ORDER_STATUS {
CREATE(10, "已创建"),
RELEASE(20, "已发布"),
process(30, "在加工"),
CLOSE(40, "已关闭"),
COMPLETE(50, "已完成"),
CANCEL(60, "已取消"),
DISMANTLE(70, "已拆解");
private int value;
private String description;
private ORDER_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