1.list<bean> 转list<map>
public List<Map<String,String>> dataBeanToMap(List<MenuInfoForm> menuInfoList ){
//将list实体类转换成list map
List<Map<String,String>>mapList=new ArrayList<>();
for(MenuInfoForm files:menuInfoList){
Map<String,String>map=new HashMap<>();
map=JSONObject.parseObject(JSONObject.toJSONString(files),Map.class);
mapList.add(map);
}
return mapList;
}