jdk1.8 数组过滤不需要的数据
List<PgMenu> pgMenuList = pgMenuMapper.selectList(wrapper);
List<PgMenu> collect = pgMenuList.stream().filter(PgMenu -> PgMenu.getState() != 2).collect(Collectors.toList());
过滤 查询到的数组中状态不等于 2 的数据

List<PgMenu> pgMenuList = pgMenuMapper.selectList(wrapper);
List<PgMenu> collect = pgMenuList.stream().filter(PgMenu -> PgMenu.getState() != 2).collect(Collectors.toList());
过滤 查询到的数组中状态不等于 2 的数据
