删除排序

master
WeiRan 2024-08-30 11:02:19 +08:00
parent 814b1b4825
commit 2a8f61f299
1 changed files with 0 additions and 1 deletions

View File

@ -40,7 +40,6 @@ public class ApiManageServiceImpl extends ServiceImpl<ApiManageMapper, Product>
queryWrapper.eq(StringUtils.isNotEmpty(productListReq.getProductType()),
Product::getProductType,productListReq.getProductType());
long count = this.count(queryWrapper);
queryWrapper.orderByDesc(Product::getProductSales);
queryWrapper.last("LIMIT " + ((pageNum - 1) * pageSize) + ", " + pageSize);
List<Product> productList = this.list(queryWrapper);
List<ProductListResp> productListResps = productList.stream()