Commit 2765d8e4 authored by shiyu's avatar shiyu

关注列表排除官方账号

parent ae0b29ef
......@@ -254,9 +254,14 @@ public class ItemServiceImpl implements ItemService {
}
//查询关注者发布的商品id,排除官方的账号
//之后要优化,以免查询出来数据过多,在下一步骤in查询中造成慢sql问题
List<UserItemsRelation> userItemsRelations = userItemsRelationDao.listByUserIds(null, filterFollowerIds);
List<Long> itemIdList = userItemsRelations.stream().map(UserItemsRelation::getItemId).collect(Collectors.toList());
if(CollectionUtils.isEmpty(itemIdList)) {
return Result.success(agentTranceResponseVoPageInfo);
}
CoinRequestDto coinRequestDto = new CoinRequestDto();
coinRequestDto.setPage(dto.getPage());
coinRequestDto.setLimit(dto.getSize());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment