Commit 50d9bdada4aeacf4946ee2573600f406631acfcd
1 parent
3f5b8761f7
Exists in
master
and in
8 other branches
code update
Showing 3 changed files with 18 additions and 5 deletions
platform-common/src/main/java/com/lyms/platform/common/enums/SmsTimeTypeEnums.java
View file @
50d9bda
| ... | ... | @@ -13,13 +13,16 @@ |
| 13 | 13 | |
| 14 | 14 | private String title; |
| 15 | 15 | |
| 16 | - public SmsTimeTypeEnums getEnum(int id) { | |
| 17 | - for (SmsTimeTypeEnums yn : values()) { | |
| 18 | - if (yn.getId() == id) { | |
| 19 | - return yn; | |
| 16 | + public static String getNameById(Integer id) { | |
| 17 | + if (id != null) | |
| 18 | + { | |
| 19 | + for (SmsTimeTypeEnums yn : values()) { | |
| 20 | + if (yn.getId() == id) { | |
| 21 | + return yn.getTitle(); | |
| 22 | + } | |
| 20 | 23 | } |
| 21 | 24 | } |
| 22 | - return null; | |
| 25 | + return ""; | |
| 23 | 26 | } |
| 24 | 27 | |
| 25 | 28 | public int getId() { |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/SmsConfigFacade.java
View file @
50d9bda
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/SmsObj.java
View file @
50d9bda
| ... | ... | @@ -20,6 +20,15 @@ |
| 20 | 20 | private Integer sendCount; |
| 21 | 21 | private Integer subTypeId; |
| 22 | 22 | private Integer typeId; |
| 23 | + private Integer timeType; | |
| 24 | + | |
| 25 | + public Integer getTimeType() { | |
| 26 | + return timeType; | |
| 27 | + } | |
| 28 | + | |
| 29 | + public void setTimeType(Integer timeType) { | |
| 30 | + this.timeType = timeType; | |
| 31 | + } | |
| 23 | 32 | |
| 24 | 33 | public String getPhone() { |
| 25 | 34 | return phone; |