Commit e081cb06 authored by shiyu's avatar shiyu

首页剔除下架的商品

parent f47cf404
...@@ -134,6 +134,7 @@ public class SupplierItemDaoImpl implements SupplierItemDao { ...@@ -134,6 +134,7 @@ public class SupplierItemDaoImpl implements SupplierItemDao {
criteria.andTypeIn(dto.getTypeList()); criteria.andTypeIn(dto.getTypeList());
criteria.andStockGreaterThan(0); criteria.andStockGreaterThan(0);
criteria.andIsDeletedEqualTo(false); criteria.andIsDeletedEqualTo(false);
criteria.andIsOnSaleEqualTo(true);
JdbcHelper.ifPresent(dto.getFilterIds(), criteria::andIdNotIn); JdbcHelper.ifPresent(dto.getFilterIds(), criteria::andIdNotIn);
// criteria.andIsOnSaleEqualTo(true); // criteria.andIsOnSaleEqualTo(true);
if (!CollectionUtils.isEmpty(dto.getIds())) { if (!CollectionUtils.isEmpty(dto.getIds())) {
......
...@@ -1149,6 +1149,7 @@ public class SupplierItemServiceImpl implements SupplierItemService { ...@@ -1149,6 +1149,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
} }
//大于200元的商品展示 //大于200元的商品展示
searchDto.setGreaterThanPrice(20000L); searchDto.setGreaterThanPrice(20000L);
searchDto.setIsOnSale(true);
// searchDto.setCreatorIdList(distinctCollectorIds); // searchDto.setCreatorIdList(distinctCollectorIds);
searchDto.setStock(0);//库存大于0 searchDto.setStock(0);//库存大于0
searchDto.setIsDeleted(false); searchDto.setIsDeleted(false);
......
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