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

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

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

猜你喜欢

转载自www.cnblogs.com/zhunong/p/12941804.html
今日推荐