OData 按多值过滤 'in()' 不起作用

问题描述 投票:0回答:0

我正在使用 OData Filter Client V2 通过传递关键字和不同的过滤器来过滤不同的产品,例如基于“来源”或“大小”,想要这样实现

$format=json&$top=50&$filter=substringof('COFFE', searchKey) and (origin eq 'BRA' or origin eq 'COL')

根据这个light OData文档我们可以使用

in()
所以看起来像这样

$filter=substringof('COFFE', searchKey) and origin in ('BRA', 'COL')

第一个带有“OR()”的有效,但不幸的是第二个带有“IN()”的无效,知道吗?

api vue.js odata sap
© www.soinside.com 2019 - 2024. All rights reserved.