java对象转map @param objList @return
(List objList)
| 57 | * @return |
| 58 | */ |
| 59 | public static List<Map<String, Object>> objectToMapList(List objList) { |
| 60 | List<Map<String, Object>> objMapList = new ArrayList<>(); |
| 61 | if (ObjectUtil.isNotEmpty(objList)) { |
| 62 | objMapList = JSONArray.parseObject(JSONArray.parseArray(JSON.toJSONString(objList)).toJSONString(), List.class); |
| 63 | } |
| 64 | return objMapList; |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * excel 对象数据校验 |
nothing calls this directly
no outgoing calls
no test coverage detected