@@ -205,6 +205,9 @@ public class GoodsManagerImpl extends BaseServiceImpl<GoodsMapper, GoodsDO> impl
throw new ServiceException("请先下架商品");
}
removeById(id);
+ //先删除sku在新增
+ productManager.remove(new LambdaQueryWrapper<ProductDO>().eq(ProductDO::getGoodsId, id));
+
@Override