use in operator(&) to query many ids
This commit is contained in:
parent
3111b94792
commit
8866960009
1 changed files with 9 additions and 8 deletions
|
@ -77,15 +77,16 @@ oml.ui.editDialog = function() {
|
||||||
oml.api.find({
|
oml.api.find({
|
||||||
keys: keys,
|
keys: keys,
|
||||||
query: {
|
query: {
|
||||||
conditions: ids.map(function(id) {
|
conditions: [
|
||||||
return {
|
{
|
||||||
key: 'id',
|
key: 'id',
|
||||||
operator: '==',
|
operator: '&',
|
||||||
value: id
|
value: ids
|
||||||
};
|
}
|
||||||
}),
|
],
|
||||||
operator: '|'
|
operator: '&'
|
||||||
}
|
},
|
||||||
|
range: [0, ids.length]
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
var data = {},
|
var data = {},
|
||||||
isMixed = {},
|
isMixed = {},
|
||||||
|
|
Loading…
Reference in a new issue