|
|
@@ -56,14 +56,7 @@ public class SpuController extends BaseController<SpuService, Spu, SpuDTO> {
|
|
|
return Result.error();
|
|
|
}
|
|
|
|
|
|
- @ApiOperation("商品分类查询")
|
|
|
- @GetMapping("category/list")
|
|
|
- public Result<SpuDTO> categoryList(){
|
|
|
- LambdaQueryWrapper<SpuDTO> categoryQueryWrapper=new LambdaQueryWrapper<>();
|
|
|
- categoryQueryWrapper.select(SpuDTO::getCategory).groupBy(SpuDTO::getCategory);
|
|
|
- List<SpuDTO> list = baseService.list(categoryQueryWrapper);
|
|
|
- return Result.success(list);
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|