| | |
| | | /** |
| | | * MDM 物料分类 API 实现类 |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | @RestController |
| | | @RequestMapping(MdmItemCategoryApi.PREFIX) |
| | |
| | | @Override |
| | | public CommonResult<MdmItemCategoryRespDTO> getItemCategory(Long id) { |
| | | MdmItemCategoryDO itemCategory = itemCategoryService.getItemCategory(id); |
| | | return success(BeanUtils.toBean(itemCategory, MdmItemCategoryRespDTO.class)); |
| | | } |
| | | |
| | | @Override |
| | | public CommonResult<MdmItemCategoryRespDTO> getItemCategoryByCode(String code) { |
| | | MdmItemCategoryDO itemCategory = itemCategoryService.getItemCategoryByCode(code); |
| | | return success(BeanUtils.toBean(itemCategory, MdmItemCategoryRespDTO.class)); |
| | | } |
| | | |
| | |
| | | return success(BeanUtils.toBean(itemCategory, MdmItemCategoryRespDTO.class)); |
| | | } |
| | | |
| | | } |
| | | } |