Loading

jdk1.8 数组过滤不需要的数据

 List<PgMenu> pgMenuList = pgMenuMapper.selectList(wrapper);
 List<PgMenu> collect = pgMenuList.stream().filter(PgMenu -> PgMenu.getState() != 2).collect(Collectors.toList());

过滤 查询到的数组中状态不等于 2 的数据 

 

 

posted @ 2020-05-23 11:40  TinaRoot  阅读(3430)  评论(0编辑  收藏  举报