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 0cf37f0..c36a8f9 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 @@ -7167,4 +7167,86 @@ public class WmsEnumUtil { return null; } } + + + /** + * BH处理状态 + */ + @JsonFormat(shape = JsonFormat.Shape.OBJECT) + public enum BH_WORK_STATUS { + WAIT_CHECK(10, "WAIT_CHECK", "待检验"), + SUBMIT_CHECK(20, "SUBMIT_CHECK", "已送检"), + IN_CHECK(30, "IN_CHECK", "检验中"), + WAIT_CONFIRM(40, "WAIT_CONFIRM", "待确认"), + WAIT_REPARI(50, "WAIT_OUT", "待返修"), + WAIT_PICK(60, "WAIT_OUT", "待挑选"), + IN_REPARI(70, "WAIT_OUT", "返修中"), + IN_PICK(80, "WAIT_OUT", "挑选中"), + WAIT_OUT(90, "WAIT_OUT", "待出库"), + OUT(100, "WAIT_OUT", "已出库"); + + private int value; + private String code; + private String description; + + BH_WORK_STATUS(int value, String code, String description) { + this.value = value; + this.code = code; + this.description = description; + } + + public int getValue() { + return value; + } + + public String getDescription() { + return description; + } + + public String getCode() { + return code; + } + + 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 String valueOfDescription(int val) { + return valueOf(val); + } + + public static int descriptionOfValue(String desc) { + return descOf(desc); + } + + + 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; + } + + public static BH_WORK_STATUS codeOf(Integer value) { + if (value == null) { + return null; + } else { + for (int i = 0; i < values().length; i++) { + if (values()[i].value == value) { + return values()[i]; + } + } + } + return null; + } + } }