List<GastrointestinalEndoscopyEntity> gastrointestinalEndoscopyEntities =
dataSourceService.templateSelectGastrointestinalEndoscopyByPatientId(itemEntity.getPatientId(), templateEntity);
gastrointestinalEndoscopyEntities = gastrointestinalEndoscopyEntities.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(()
-> new TreeSet<>(Comparator.comparing(GastrointestinalEndoscopyEntity::getAccessionno))), ArrayList::new));
java中list根据某字段去重代码示例
最新推荐文章于 2024-01-31 16:39:00 发布