list转map
/** * List -> Map * pacs的name作为key,uniqueName作为value
key重复时就覆盖更新 *
Map<String, String> name_uniqueName = wordCrfDTO.getPacs().stream().filter(x -> StringUtils.isNotBlank(x.getUniqueName()))
.collect(Collectors.toMap(Pacs::getName, Pacs::getUniqueName
, (k1, k2) -> k2));