Commit c0dd84aa5cf02bc4b68c7dab45a4a6a64b6c7b52
1 parent
0a55d3a1f2
Exists in
master
and in
6 other branches
key value 返回类型改为 id name
Showing 1 changed file with 2 additions and 3 deletions
platform-common/src/main/java/com/lyms/platform/common/utils/EnumUtil.java
View file @
c0dd84a
| 1 | 1 | package com.lyms.platform.common.utils; |
| 2 | 2 | |
| 3 | -import com.lyms.platform.common.enums.CouponEnums; | |
| 4 | 3 | import org.apache.commons.beanutils.PropertyUtils; |
| 5 | 4 | |
| 6 | 5 | import java.security.InvalidParameterException; |
| ... | ... | @@ -40,8 +39,8 @@ |
| 40 | 39 | Object value = PropertyUtils.getProperty(ec,valueName); |
| 41 | 40 | if(key != null && value != null) { |
| 42 | 41 | Map<String, Object> tempMap = new HashMap<>(); |
| 43 | - tempMap.put("key", key.toString()); | |
| 44 | - tempMap.put("value", value); | |
| 42 | + tempMap.put("id", key.toString()); | |
| 43 | + tempMap.put("name", value); | |
| 45 | 44 | list.add(tempMap); |
| 46 | 45 | } |
| 47 | 46 | } |