删除商品,同步删除耗材商品关系

删除耗材,同步删除耗材商品关系
This commit is contained in:
Tankaikai 2025-04-12 16:45:17 +08:00
parent f26965704b
commit eb885016f5
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ public class ConsInfoServiceImpl extends ServiceImpl<ConsInfoMapper, ConsInfo> i
public boolean deleteConsInfo(Long id) {
Long shopId = StpKit.USER.getShopId(0L);
super.remove(query().eq(ConsInfo::getId, id).eq(ConsInfo::getShopId, shopId));
prodConsRelationMapper.deleteByQuery(query().eq(ProdConsRelation::getConsInfoId, id).eq(ProdConsRelation::getShopId, shopId));
prodConsRelationMapper.deleteByQuery(query().eq(ProdConsRelation::getConsInfoId, id));
return true;
}