Commit 68b3cef67c4254737b056bcb7f7ee32e45f26d3c
1 parent
2cf4fd4242
Exists in
master
and in
8 other branches
增加是否通知
Showing 1 changed file with 33 additions and 0 deletions
platform-common/src/main/java/com/lyms/platform/common/enums/SieveEnums.java
View file @
68b3cef
| ... | ... | @@ -13,6 +13,39 @@ |
| 13 | 13 | =id; |
| 14 | 14 | this.name=name; |
| 15 | 15 | } |
| 16 | + public enum NotifyEnums{ | |
| 17 | + O("未通知",0),O1("已通知",1); | |
| 18 | + private NotifyEnums(String name,Integer id){ | |
| 19 | + this.name=name; | |
| 20 | + this.id=id; | |
| 21 | + } | |
| 22 | + private Integer id; | |
| 23 | + private String name; | |
| 24 | + | |
| 25 | + public Integer getId() { | |
| 26 | + return id; | |
| 27 | + } | |
| 28 | + | |
| 29 | + public void setId(Integer id) { | |
| 30 | + this.id = id; | |
| 31 | + } | |
| 32 | + | |
| 33 | + public String getName() { | |
| 34 | + return name; | |
| 35 | + } | |
| 36 | + | |
| 37 | + public void setName(String name) { | |
| 38 | + this.name = name; | |
| 39 | + } | |
| 40 | + public static String getTitle(Integer id){ | |
| 41 | + for(NotifyEnums enums:values()){ | |
| 42 | + if(id==enums.getId()){ | |
| 43 | + return enums.getName(); | |
| 44 | + } | |
| 45 | + } | |
| 46 | + return null; | |
| 47 | + } | |
| 48 | + } | |
| 16 | 49 | private Integer id; |
| 17 | 50 | private String name; |
| 18 | 51 |