List<Map>相同的id的其他字段相加

	list1 = list.stream().collect(Collectors.toMap(Intelligence::getMineName, a -> a, (o1, o2) -> {
			
			o1.setSuspectedCalibration(o1.getSuspectedCalibration() + o2.getSuspectedCalibration());
			return o1;
		})).values().stream().collect(Collectors.toList());

你可能感兴趣的:(java)