List<bean> 转换成List<Map>

//将listmap转换成list实体类
        List mapList=new ArrayList<>();
 List> entOutyTodayList = new ArrayList<>();
            for(Map files:entOutyTodayList){
                Qiyexinxi map =new Qiyexinxi();
                map= JSONObject.parseObject(JSONObject.toJSONString(files),Qiyexinxi.class);
                mapList.add(map);
            }
//将list实体类转换成list map

  List result = qiyexinxiMapper.selectList(wrapper);
        List>mapList=new ArrayList<>();
        for(Qiyexinxi files:result){
            Mapmap=new HashMap();
            map= JSONObject.parseObject(JSONObject.toJSONString(files),Map.class);
            mapList.add(map);
        }

你可能感兴趣的:(java,list,linq,java)