删除商品,同步删除耗材商品关系
删除耗材,同步删除耗材商品关系
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user