| | |
| | | private MdmItemBatchConfigMapper itemBatchConfigMapper; |
| | | |
| | | @Override |
| | | public CommonResult<Boolean> syncExistingItemColor(String code, String color) { |
| | | MdmItemDO existingItem = itemMapper.selectByCode(code); |
| | | if (existingItem == null || color == null) { |
| | | return success(false); |
| | | } |
| | | itemMapper.updateById(new MdmItemDO().setId(existingItem.getId()).setColor(color)); |
| | | return success(true); |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public CommonResult<Long> syncItemToMdm(MdmItemSyncReqDTO syncReqDTO) { |
| | | // 1. 按 code 查询是否已存在 |
| | |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |