我有几个产品在后台注册,如果我直接从HAC执行灵活的搜索查询,我可以看到它们中的任何一个,但是,如果我使用执行相同查询的ProductService#getProductForCode,它找不到任何产品。那件事怎么可能?
发布于 2021-06-16 13:52:23
您可以在调用productService#getProductForCode
之前尝试禁用搜索限制
import de.hybris.platform.search.restriction.SearchRestrictionService;
......
searchRestrictionService.disableSearchRestrictions();
https://stackoverflow.com/questions/67906971
复制