Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在后台注册了几个产品,如果我直接从 HAC 执行灵活的搜索查询,我可以看到其中任何一个,但是,如果我使用 ProductService#getProductForCode 执行与我相同的查询,它不会找到任何产品。这怎么可能?
您可以在致电之前尝试禁用搜索限制productService#getProductForCode
productService#getProductForCode
import de.hybris.platform.search.restriction.SearchRestrictionService; ...... searchRestrictionService.disableSearchRestrictions();