Commit 0d341e0026e2e0b4c6c120c149a670725d120f6e
1 parent
bcfb2229c8
Exists in
master
and in
1 other branch
周枚举
Showing 2 changed files with 9 additions and 5 deletions
platform-common/src/main/java/com/lyms/platform/common/enums/WeekEnums.java
View file @
0d341e0
| ... | ... | @@ -38,13 +38,17 @@ |
| 38 | 38 | return 0; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public static List<String> getWeekEnums() { | |
| 42 | - List<String> list = new ArrayList<>(); | |
| 43 | - for (WeekEnums e : WeekEnums.values()) { | |
| 44 | - list.add(e.getName()); | |
| 41 | + public static List<Map> getWeekEnums() { | |
| 42 | + List<Map> list = new ArrayList<>(); | |
| 43 | + for (SendDateEnums e : SendDateEnums.values()) { | |
| 44 | + Map rootMap = new HashMap(); | |
| 45 | + rootMap.put("id", e.getId()); | |
| 46 | + rootMap.put("name", e.getName()); | |
| 47 | + list.add(rootMap); | |
| 45 | 48 | } |
| 46 | 49 | return list; |
| 47 | 50 | } |
| 51 | + | |
| 48 | 52 | |
| 49 | 53 | private int id; |
| 50 | 54 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/EnumsController.java
View file @
0d341e0