过年啦

List<Object> ——> List<Long>

List<FaultReport> reportDetail = reportMapper.getReportDetail(pagePo);
List<Long> collect = reportDetail.stream().map(FaultReport::getId).collect(Collectors.toList());
posted @ 2024-02-21 11:24  一只快乐的柠檬精J  阅读(25)  评论(0)    收藏  举报