Commit 2d34ed8a824bd3c1a2556ce5388b65cb7c5878a4
1 parent
cc50272861
Exists in
master
and in
8 other branches
产妇增加字段
Showing 1 changed file with 8 additions and 0 deletions
platform-common/src/main/java/com/lyms/platform/common/enums/ServiceTypeEnums.java
View file @
2d34ed8
| ... | ... | @@ -30,6 +30,14 @@ |
| 30 | 30 | public String getName() { |
| 31 | 31 | return name; |
| 32 | 32 | } |
| 33 | + public String getTitleById(int id){ | |
| 34 | + for(ServiceTypeEnums enums:values()){ | |
| 35 | + if(id==enums.getId()){ | |
| 36 | + return enums.getName(); | |
| 37 | + } | |
| 38 | + } | |
| 39 | + return null; | |
| 40 | + } | |
| 33 | 41 | |
| 34 | 42 | |
| 35 | 43 | public static List<Map<String,String>> getServiceTypeList() |