diff --git a/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/util/MesExtEnumUtil.java b/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/util/MesExtEnumUtil.java index 29fd1db..1be5cdc 100644 --- a/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/util/MesExtEnumUtil.java +++ b/modules/i3plus-ext-mes-pojo/src/main/java/cn/estsh/i3plus/ext/mes/pojo/util/MesExtEnumUtil.java @@ -690,6 +690,49 @@ public class MesExtEnumUtil { } /** + * 零件发运组-扫描确认零件方式 + */ + @JsonFormat( + shape = JsonFormat.Shape.OBJECT + ) + public static enum PRODUCE_SN_STATUS { + CREATE(10, "创建"), + OFFLINE(30, "已完成"), + ASSEMBLY(20, "已装配"), + + CHECKED(40, "已校验"), + SHIPPED(50, "发运"); + + private int value; + private String description; + + private PRODUCE_SN_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(