| | |
| | | } |
| | | |
| | | @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)); |
| | | } |
| | | |
| | | } |
| | | } |