Commit 64c76d8d2c6c3d766b34e83f727121b16eddd231
1 parent
632c0ea9b5
Exists in
master
and in
6 other branches
访视
Showing 1 changed file with 6 additions and 3 deletions
platform-common/src/main/java/com/lyms/platform/common/enums/PostpartumFollowMakeEnums.java
View file @
64c76d8
... | ... | @@ -341,9 +341,12 @@ |
341 | 341 | } |
342 | 342 | |
343 | 343 | public static String getTitle(Integer id) { |
344 | - for (StatusEnum e:values()) { | |
345 | - if (e.getId() == id) { | |
346 | - return e.getName(); | |
344 | + if (id != null) | |
345 | + { | |
346 | + for (StatusEnum e:values()) { | |
347 | + if (e.getId() == id) { | |
348 | + return e.getName(); | |
349 | + } | |
347 | 350 | } |
348 | 351 | } |
349 | 352 | return ""; |