From 68b0058e1b5b5e97fab83a81ec03662eaf90662d Mon Sep 17 00:00:00 2001 From: lbwgithub <你的邮箱1002117856@qq.com> Date: Wed, 9 Oct 2019 11:35:50 +0800 Subject: [PATCH] =?UTF-8?q?=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/CommonEnumUtil.java | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/CommonEnumUtil.java b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/CommonEnumUtil.java index a39b0e4..0294208 100644 --- a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/CommonEnumUtil.java +++ b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/CommonEnumUtil.java @@ -393,7 +393,67 @@ public class CommonEnumUtil { return tmp; } } + /** + * 数据类型 + * 1库存移动数据 + * 2质检数据 + * 3已配料待出库 + * 4JIS发运扣减 + * 5报工待汇总 + * 6报工汇总待处理 + * 7erp接口待同步 + */ + @JsonFormat(shape = JsonFormat.Shape.OBJECT) + public enum NUM_TYPE { + MOVE_DETAILS(1, "MOVE_DETAILS", "库存移动数据"), + QC_DETAILS(2, "QC_DETAILS", "质检数据"), + DOC_MOVEMENT(3, "DOC_MOVEMENT", "已配料待出库"), + DOC_SHIPPING(4, "DOC_SHIPPING", "JIS发运扣减"), + FG_DETAILS(5, "FG_DETAILS", "报工待汇总"), + FG_SUM(6, "FG_SUM", "报工汇总待处理"), + ERP_INTERFACE(7, "ERP_INTERFACE", "ERP接口待同步"); + private int value; + private String code; + private String description; + + private NUM_TYPE(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 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; + } + } @JsonFormat(shape = JsonFormat.Shape.OBJECT) public enum USER_INFO_STATUS { INCUMBENT(1, "正常", "正常_NORMAL"),