stream

 List<Integer> mortgageeTypeList = mortgagePolicys.stream().filter(e -> e.getMortgageeType() != null)
                    .map(CPolicyEntity::getMortgageeType).distinct()
                    .collect(Collectors.toList());
posted @ 2024-08-15 14:34  亲爱的阿道君  阅读(11)  评论(0编辑  收藏  举报