From 68b3cef67c4254737b056bcb7f7ee32e45f26d3c Mon Sep 17 00:00:00 2001 From: jiangjiazhi Date: Fri, 8 Jul 2016 10:23:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=98=AF=E5=90=A6=E9=80=9A?= =?UTF-8?q?=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lyms/platform/common/enums/SieveEnums.java | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/platform-common/src/main/java/com/lyms/platform/common/enums/SieveEnums.java b/platform-common/src/main/java/com/lyms/platform/common/enums/SieveEnums.java index c89ff54..7acb449 100644 --- a/platform-common/src/main/java/com/lyms/platform/common/enums/SieveEnums.java +++ b/platform-common/src/main/java/com/lyms/platform/common/enums/SieveEnums.java @@ -13,6 +13,39 @@ public enum SieveEnums { =id; this.name=name; } + public enum NotifyEnums{ + O("未通知",0),O1("已通知",1); + private NotifyEnums(String name,Integer id){ + this.name=name; + this.id=id; + } + private Integer id; + private String name; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + public static String getTitle(Integer id){ + for(NotifyEnums enums:values()){ + if(id==enums.getId()){ + return enums.getName(); + } + } + return null; + } + } private Integer id; private String name; -- 1.8.3.1