初始化状态为新建 枚举新增

yun-zuoyi
Jack.lv 6 years ago
parent a4301ce4b2
commit 20cea81ea2

@ -957,6 +957,45 @@ public class WmsEnumUtil {
}
}
/**
* ASN 10=,20=,30=40=,50=
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ASN_STATUS {
CREATE(10, "新建"),
RECEIPT(20, "收货中"),
RECEIPT_FINISH(30, "收货完成"),
CLOSED(40, "已关闭"),
CANCELLED(50, "已取消");
private int value;
private String description;
ASN_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOf(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