List<BaaJoyMallGoods> goodsListNotSelling = baaJoyMallGoods.stream()
.filter(newBeeMallGoodsTemp -> newBeeMallGoodsTemp.getGoodsSellStatus() != Constants.SELL_STATUS_UP)
.collect(Collectors.toList());
被filter这个词 误导了,这是用来留下符合条件的元素,而不是过滤掉符合条件的元素。具体来说,它的参数是一个谓词,即一个返回布尔值的函数,用于判断元素是否符合条件。