java map的key值转驼峰

MPJLambdaWrapper<Entity> wrapper = new MPJLambdaWrapper<Entity>();
baseMapper.selectJoinMaps(wrapper).stream().map(MapUtil::toCamelCaseMap).collect(Collectors.toList());
List<Map<String, Object>> getList(DateAndAreaDto dateAndAreaDto);

return Result.success(scaleoperateMapper.getList(dateAndAreaDto)
                .stream()
                .map(MapUtil::toCamelCaseMap)

             map.stream()
                .map(MapUtil::toCamelCaseMap)
                .collect(Collectors.toList())
posted @ 2023-12-04 08:49  寒冷的雨呢  阅读(52)  评论(0编辑  收藏  举报