Commit f47cf404 authored by shiyu's avatar shiyu

首页展示商品价格需大于200元

parent 79485e8f
...@@ -1141,17 +1141,17 @@ public class SupplierItemServiceImpl implements SupplierItemService { ...@@ -1141,17 +1141,17 @@ public class SupplierItemServiceImpl implements SupplierItemService {
for (CollectorWhiteList collectorWhiteList : collectorWhiteListList) { for (CollectorWhiteList collectorWhiteList : collectorWhiteListList) {
followerIds.add(collectorWhiteList.getCollectorId()); followerIds.add(collectorWhiteList.getCollectorId());
} }
List<Long> distinctCollectorIds = followerIds.stream().distinct().collect(Collectors.toList()); List<Long> distinctCollectorIds = followerIds.stream().distinct().collect(Collectors.toList());*/
searchDto.setIsDeleted(false);
if (dto.getType() == DistributionEnum.DistributionTypeEnum.FIXED_PRICE.getCode()) { if (dto.getType() == DistributionEnum.DistributionTypeEnum.FIXED_PRICE.getCode()) {
searchDto.setTypeList(Arrays.asList(DistributionEnum.DistributionTypeEnum.FIXED_PRICE.getCode(), DistributionEnum.DistributionTypeEnum.COLLECT.getCode())); searchDto.setTypeList(Arrays.asList(DistributionEnum.DistributionTypeEnum.FIXED_PRICE.getCode(), DistributionEnum.DistributionTypeEnum.COLLECT.getCode()));
} else { } else {
searchDto.setTypeList(Arrays.asList(DistributionEnum.DistributionTypeEnum.AUCTION.getCode())); searchDto.setTypeList(Arrays.asList(DistributionEnum.DistributionTypeEnum.AUCTION.getCode()));
}*/ }
//大于200元的商品展示 //大于200元的商品展示
searchDto.setGreaterThanPrice(20000L); searchDto.setGreaterThanPrice(20000L);
// searchDto.setCreatorIdList(distinctCollectorIds); // searchDto.setCreatorIdList(distinctCollectorIds);
searchDto.setStock(0);//库存大于0 searchDto.setStock(0);//库存大于0
searchDto.setIsDeleted(false);
searchDto.setPage(dto.getPage()); searchDto.setPage(dto.getPage());
searchDto.setLimit(dto.getLimit()); searchDto.setLimit(dto.getLimit());
String viewKey = userId + ":homepage"; String viewKey = userId + ":homepage";
......
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