|
@@ -8,6 +8,7 @@ import com.cdf.common.ResultData;
|
|
import com.cdf.entity.Brand;
|
|
import com.cdf.entity.Brand;
|
|
import com.cdf.entity.HotOutline;
|
|
import com.cdf.entity.HotOutline;
|
|
import com.cdf.request.BaseRequest;
|
|
import com.cdf.request.BaseRequest;
|
|
|
|
+import com.cdf.request.BrandApiParam;
|
|
import com.cdf.service.IBrandService;
|
|
import com.cdf.service.IBrandService;
|
|
import com.cdf.service.impl.ExcelService;
|
|
import com.cdf.service.impl.ExcelService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -34,11 +35,8 @@ public class BrandController {
|
|
ExcelService excelService;
|
|
ExcelService excelService;
|
|
|
|
|
|
@PostMapping("/list")
|
|
@PostMapping("/list")
|
|
- public ResultData list(@RequestBody BaseRequest param){
|
|
|
|
- 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));
|
|
|
|
|
|
+ public ResultData list(@RequestBody BrandApiParam param){
|
|
|
|
+ return ResultData.ok(brandService.pageList(param));
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping("updateBrandInfo")
|
|
@GetMapping("updateBrandInfo")
|