查询
List<Goods> result = new ArrayList<>();
List<Goods> goodsthirdIdList = goodsRepository.selGoodsByThirdId(ThirdId());
if(result.isEmpty()) {
result = goodsthirdIdList;
} else {
result = result.stream()
.filter(t->goodsthirdIdList.stream().
anyMatch(t2->t2.getGoodsId()==t.getGoodsId()))
.collect(Collectors.toList());
}