List<QdOffor> qdOffors = qdOfforMapper.selectList(null);
List<Long> channelIds = qdOffors.stream()
.map(QdOffor::getChannelId).toList();
List<QdChannel> qdChannels = qdChannelMapper.selectList(null);
List<Long> list = qdChannels.stream()
.filter(v -> v.getChannelType()
.equals("receipt"))
.map(QdChannel::getChannelId).toList();
//排除被选中的渠道
//将俩个集合内的相同的数据去掉 不是去重!不是去重!不是去重!
List<Long> list1 = list.stream()
.filter(word -> !channelIds.contains(word)).toList();
steam流将两个List内相同的数据去掉 不是去重!不是去重!不是去重!
最新推荐文章于 2024-04-16 06:56:34 发布