|
|
|
|
@ -102,7 +102,7 @@ public class ErpProductCategoryController {
|
|
|
|
|
|
|
|
|
|
@GetMapping("/simple-list")
|
|
|
|
|
@Operation(summary = "获得产品分类精简列表", description = "只包含被开启的分类,主要用于前端的下拉选项")
|
|
|
|
|
public CommonResult<List<ErpProductCategoryRespVO>> getProductCategorySimpleList(@RequestParam("type") Integer type) {
|
|
|
|
|
public CommonResult<List<ErpProductCategoryRespVO>> getProductCategorySimpleList(@RequestParam(value = "type",required = false) Integer type) {
|
|
|
|
|
List<ErpProductCategoryDO> list = productCategoryService.getProductCategoryList(
|
|
|
|
|
new ErpProductCategoryListReqVO().setStatus(CommonStatusEnum.ENABLE.getStatus()).setType(type));
|
|
|
|
|
return success(convertList(list, category -> new ErpProductCategoryRespVO()
|
|
|
|
|
|