为你推荐3.0
This commit is contained in:
parent
333857d199
commit
b0ef966ed5
@ -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;
|
||||
}
|
||||
|
||||
@ -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())){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user