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({
|
||||
keys: keys,
|
||||
query: {
|
||||
conditions: ids.map(function(id) {
|
||||
return {
|
||||
conditions: [
|
||||
{
|
||||
key: 'id',
|
||||
operator: '==',
|
||||
value: id
|
||||
};
|
||||
}),
|
||||
operator: '|'
|
||||
}
|
||||
operator: '&',
|
||||
value: ids
|
||||
}
|
||||
],
|
||||
operator: '&'
|
||||
},
|
||||
range: [0, ids.length]
|
||||
}, function(result) {
|
||||
var data = {},
|
||||
isMixed = {},
|
||||
|
|
Loading…
Reference in a new issue