Commit bf6c7742c1f7c583854ec5f82c591355c9952c4c
1 parent
34ba2fb593
Exists in
master
and in
6 other branches
bug
Showing 1 changed file with 2 additions and 2 deletions
platform-common/src/main/java/com/lyms/platform/common/enums/NextVisitTimeEnums.java
View file @
bf6c774
| ... | ... | @@ -54,12 +54,12 @@ |
| 54 | 54 | private Integer id; |
| 55 | 55 | private String name; |
| 56 | 56 | |
| 57 | - public static NextVisitTimeEnums getName(String id) { | |
| 57 | + public static String getName(String id) { | |
| 58 | 58 | if(StringUtils.isNotEmpty(id)) { |
| 59 | 59 | NextVisitTimeEnums[] values = NextVisitTimeEnums.values(); |
| 60 | 60 | for (NextVisitTimeEnums value : values) { |
| 61 | 61 | if (value.getId() == Integer.parseInt(id)) { |
| 62 | - return value; | |
| 62 | + return value.getName(); | |
| 63 | 63 | } |
| 64 | 64 | } |
| 65 | 65 | } |