eg1:
List<CarVo> carVoList = carService.getList(carVo);
List<String> listVins = carVoList.stream().map(CarVo::getVinNo).collect(Collectors.toList());
eg2:
List<WhVehicleModel> whVehicleModelList = ***;
Map<String, WhVehicleModel> whVehicleModelMap = whVehicleModelList.stream().
collect(Collectors.toConcurrentMap(i -> i.getPlateNum() + i.getVin() + i.getEin(),
Function.identity()));
List<DeptModel> deptModels = commonBaseService.queryAllRepairFromOrgain();
if (deptModels != null) {
Map<Integer, List<DeptModel>> deptModelMap = deptModels.stream().
collect(Collectors.groupingBy(DeptModel::getDeptAttribute));
}