From 73d2da12edd7f62dfda811c03b069dd74cf2c8f3 Mon Sep 17 00:00:00 2001 From: "Jack.lv" Date: Tue, 19 Mar 2019 20:21:52 +0800 Subject: [PATCH] =?UTF-8?q?po=E7=89=88=E6=9C=AC=E6=9E=9A=E4=B8=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../i3plus/pojo/base/enumutil/WmsEnumUtil.java | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) 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 0d72080..fbbd992 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 @@ -2151,4 +2151,44 @@ public class WmsEnumUtil { return tmp; } } + + /** + * 版本号 + */ + @JsonFormat(shape = JsonFormat.Shape.OBJECT) + public enum VERSION { + PO_VERSION(10, "VERSION", "PO版本号"); + + private int value; + private String code; + private String description; + + VERSION(int value, String code, String description){ + this.value = value; + this.description = description; + this.code = code; + } + + 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].getDescription(); + } + } + return tmp; + } + } }