java8将List<Map<String,Object>>转换为Map

List<Map<String,Object>> qlist=ttptOrderMMapper.selectList(tptQuery);
Map<String,Object> map=qlist.stream().collect(Collectors.toMap(a1->a1.get("mapkeyid"),a2->a2));
    原文作者:晴宝的太阳
    原文地址: https://blog.csdn.net/weixin_44491391/article/details/119823762
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞