diff --git a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/WmsEnumUtil.java b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/WmsEnumUtil.java index 63ee5c5..ca1e277 100644 --- a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/WmsEnumUtil.java +++ b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/WmsEnumUtil.java @@ -378,51 +378,51 @@ public class WmsEnumUtil { } } -// /** -// * PO条码状态信息 -// */ -// @JsonFormat(shape = JsonFormat.Shape.OBJECT) -// public enum SN_DETAILS_STATUS { -// CREATE(10, "新建"), -// WAREHOUSING(30, "已打印"), -// RECEIPT_FINISH(20, "已收货"); -// -// private int value; -// private String description; -// -// SN_DETAILS_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; -// } -// -// public static int descOf(String desc) { -// int tmp = 1; -// for (int i = 0; i < values().length; i++) { -// if (values()[i].description.equals(desc)) { -// tmp = values()[i].value; -// } -// } -// return tmp; -// } -// } + /** + * PO条码状态信息 + */ + @JsonFormat(shape = JsonFormat.Shape.OBJECT) + public enum SN_DETAILS_STATUS { + CREATE(10, "新建"), + WAREHOUSING(30, "已打印"), + RECEIPT_FINISH(20, "已收货"); + + private int value; + private String description; + + SN_DETAILS_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; + } + + public static int descOf(String desc) { + int tmp = 1; + for (int i = 0; i < values().length; i++) { + if (values()[i].description.equals(desc)) { + tmp = values()[i].value; + } + } + return tmp; + } + } /** * 消息队列,队列名称