From c87c0384109ab785c4d83d15d2d1b342d9371377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=AF=E8=A3=95?= Date: Sat, 17 Nov 2018 01:35:17 +0800 Subject: [PATCH] meiju --- .../i3plus/pojo/base/enumutil/WmsEnumUtil.java | 34 ++++++++++++++++++++++ 1 file changed, 34 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 19cfb3a..d9cc28f 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 @@ -751,4 +751,38 @@ public class WmsEnumUtil { return tmp; } } + + /** + * 作业任务状态 + */ + @JsonFormat(shape = JsonFormat.Shape.OBJECT) + public enum TASK_INFO_STATUS { + CREATE(10, "创建"), FINISH(20, "待处理"), FAIL(30, "已处理"); + + private int value; + private String description; + + TASK_INFO_STATUS(int value, String description) { + this.value = value; + this.description = description; + } + + public int getValue() { + return value; + } + + public String getDescription() { + return description; + } + + 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; + } + } }