为你推荐3.0

This commit is contained in:
xxy 2025-04-30 09:44:10 +08:00
parent 333857d199
commit b0ef966ed5
2 changed files with 3 additions and 3 deletions

View File

@ -10,9 +10,9 @@ import lombok.Data;
@Data
public class ProductSuggestPage {
//当前页
private Long currentPage;
private Long page;
//页容
private Long pageSize;
private Long limit;
//搜索词商品名
private String storeName;
}

View File

@ -101,7 +101,7 @@ public class ProductServiceImpl extends ServiceImpl<StoreProductDao,StoreProduct
@Override
public IPage<StoreProduct> getProductSuggestionList(ProductSuggestPage param) {
//分页查询
IPage<StoreProduct> page = new Page<>(param.getCurrentPage(), param.getPageSize());
IPage<StoreProduct> page = new Page<>(param.getPage(), param.getLimit());
//构造查询条件
/*QueryWrapper<StoreProduct> query = new QueryWrapper<>();
if(StringUtils.isNotEmpty(param.getStoreName())){