List<CommonExportDTO> commonList; // 取字段string转int构建新列表 List<Integer> collect = commonList.stream().map(dto -> Integer.valueOf(dto.getCell6())).collect(Collectors.toList()); // reduce求和 Optional<Integer> reduce = collect.stream().reduce(Integer::sum); Integer total = reduce.get();