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;