Map<String, List<Statistics>> map = msgOpenList.stream().collect(Collectors.groupingBy(item -> new SimpleDateFormat("yyyy-MM-dd").format(new Date(item.getOperationTime()))));
用stream流比较List<对象>内的时间戳进行分组(按天)
最新推荐文章于 2023-07-12 17:22:29 发布