old mode 100644
new mode 100755
| | |
| | | package com.java110.utils.util; |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import org.apache.commons.beanutils.BeanUtils; |
| | | import org.apache.commons.beanutils.ConvertUtils; |
| | | import org.apache.commons.beanutils.Converter; |
| | |
| | | Object value = orgMap.get(field.getName()); |
| | | //String 转date |
| | | Object tmpValue = Java110Converter.getValue(value, dstClass); |
| | | //System.out.println("tmpValue"+value.toString()); |
| | | beanMap.put(field.getName(), tmpValue); |
| | | } |
| | | } |
| | |
| | | return map; |
| | | } |
| | | |
| | | /** |
| | | * bean转换为map对象 |
| | | * |
| | | * @param orgBean 原始bean |
| | | * @return map对象 |
| | | */ |
| | | public static JSONObject beanCovertJson(Object orgBean) { |
| | | |
| | | return JSONObject.parseObject(JSONObject.toJSONString(orgBean)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * bean集合转换为map对象集合 |