From 3451fc57142f286c7fbc68d674c1ff5538d907c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LML=E4=B8=B6?= Date: Wed, 8 May 2024 11:34:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9E=9A=E4=B8=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../i3plus/ext/mes/pojo/util/MesExtEnumUtil.java | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) 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(