List<CmsCategorySelectVO> collect =
fitnessguidance.stream()
.filter(s -> categoryList.contains(s.getId()))
.collect(Collectors.toList());
先将List转换成流,进行过滤出
contains:包含的意思
List<CmsCategorySelectVO> collect =
fitnessguidance.stream()
.filter(s -> categoryList.contains(s.getId()))
.collect(Collectors.toList());
先将List转换成流,进行过滤出
contains:包含的意思