|
@@ -1,10 +1,12 @@
|
|
|
package com.cdf.controller.back;
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.cdf.common.PageInfo;
|
|
|
import com.cdf.common.ResultData;
|
|
|
import com.cdf.entity.Brand;
|
|
|
+import com.cdf.entity.HotOutline;
|
|
|
import com.cdf.request.BaseRequest;
|
|
|
import com.cdf.service.IBrandService;
|
|
|
import com.cdf.service.impl.ExcelService;
|
|
@@ -33,7 +35,9 @@ public class BrandController {
|
|
|
|
|
|
@PostMapping("/list")
|
|
|
public ResultData list(@RequestBody BaseRequest param){
|
|
|
- Page<Brand> page = brandService.page(new Page<>(param.getPageNum(), param.getPageSize()));
|
|
|
+ LambdaQueryWrapper<Brand> wrapper = new LambdaQueryWrapper<>();
|
|
|
+ wrapper.orderByDesc(Brand::getCdfBrandId);
|
|
|
+ Page<Brand> page = brandService.page(new Page<>(param.getPageNum(), param.getPageSize()),wrapper);
|
|
|
return ResultData.ok(PageInfo.PageInfo(page));
|
|
|
}
|
|
|
|