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 3bef53e..e5ac171 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 @@ -500,6 +500,40 @@ public class WmsEnumUtil { } /** + * 库位状态 + */ + @JsonFormat(shape = JsonFormat.Shape.OBJECT) + public enum LOCATE_STATUS { + CREATE(10, "空库位"), FINISH(20, "非空"), FAIL(30, "已满"); + + private int value; + private String description; + + LOCATE_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; + } + } + + /** * 外部单据:移库单移动类型 */ @JsonFormat(shape = JsonFormat.Shape.OBJECT)