Map<String, List<PointsLogEntity>> dataTimePointLog = pointsLogEntityList.stream().collect(Collectors.groupingBy(item -> new SimpleDateFormat("yyyy-MM-dd").format(new Date(item.getTime()))));
用stream流比较List<对象>内的时间戳进行分组 按天
最新推荐文章于 2024-07-11 17:24:34 发布