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