From 78e691fcb7b1d2363fc14613203205fd205fe77b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LML=E4=B8=B6?= Date: Fri, 26 Apr 2024 16:18:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Ebean=20repository?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../i3plus/ext/mes/pojo/util/MesExtEnumUtil.java | 41 ++++++++++++++++++++++ 1 file changed, 41 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 e236225..92fbd6a 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 @@ -1163,6 +1163,47 @@ public class MesExtEnumUtil { } /** + * PTR零件维护-总成类型 + */ + @JsonFormat(shape = JsonFormat.Shape.OBJECT) + public static enum PTR_PART_TYPE { + CP(10, "CP"), + OHS(20, "OHS"), + DPFL(30, "DPFL"), + DPFR(40, "DPFR"), + DPRL(50, "DPRL"), + DPRR(60, "DPRR"); + + private int value; + private String description; + + private PTR_PART_TYPE(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(