删除商品 删除关联关联问题

This commit is contained in:
wangw 2025-04-12 16:23:55 +08:00
parent 55a25e0cdb
commit 912bc7819a
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
.eq(Product::getId, id)
.eq(Product::getShopId, shopId)
.update();
prodGroupRelationMapper.deleteByQuery(query().eq(ProdGroupRelation::getProductId, id).eq(ProdGroup::getShopId, shopId));
prodGroupRelationMapper.deleteByQuery(query().eq(ProdGroupRelation::getProductId, id));
}
@Override