| | |
| | | |
| | | @Tag(name = "管理后台 - MDM 物料分类") |
| | | @RestController |
| | | @RequestMapping("/mdm/item-category") |
| | | @RequestMapping("/mdm/category") |
| | | @Validated |
| | | public class MdmItemCategoryController { |
| | | |
| | |
| | | return success(BeanUtils.toBean(list, MdmItemCategoryRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/list-all-simple") |
| | | @Operation(summary = "获得启用的分类列表") |
| | | public CommonResult<List<MdmItemCategoryRespVO>> getSimpleItemList() { |
| | | List<MdmItemCategoryDO> list = itemCategoryService.getSimpleItemList(); |
| | | return success(BeanUtils.toBean(list, MdmItemCategoryRespVO.class)); |
| | | } |
| | | |
| | | } |