stream
List<Integer> mortgageeTypeList = mortgagePolicys.stream().filter(e -> e.getMortgageeType() != null)
.map(CPolicyEntity::getMortgageeType).distinct()
.collect(Collectors.toList());
不积跬步,无以至千里;不积小流,无以成江海。