fix(goods): 忽略产品查询中的租户限制
- 在 ProductService 的 selectById 方法中添加 TenantHelper.ignore(),以忽略租户限制 - 这样可以确保在查询产品时不受当前租户的约束,提高查询的灵活性和适用性
This commit is contained in:
parent
cb05c45909
commit
c9ff830a56
@ -87,8 +87,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
||||
*/
|
||||
@Override
|
||||
public ProductVO selectById(Long id) {
|
||||
return productMapper.selectProductWithSkus(id);
|
||||
|
||||
return TenantHelper.ignore(() -> productMapper.selectProductWithSkus(id));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user