src/main/java/com/hx/util/SimpleTool.java
@@ -76,6 +76,27 @@ return map; } /** * 将对象装换为map * * @param bean * @return */ public static Map<String, String> beanToMapS(Object bean) { Map<String, String> map = new HashMap<>(); if (bean != null) { BeanMap beanMap = BeanMap.create(bean); for (Object key : beanMap.keySet()) { if(beanMap.get(key) != null){ map.put(key + "", beanMap.get(key).toString()); }else{ map.put(key + "", ""); } } } return map; } /** * 后台格式构建返回值格式列表-后台获取列表