This commit is contained in:
parent
aec46bb855
commit
4465f48afe
|
@ -73,7 +73,7 @@ module.exports = Self => {
|
|||
case 'search':
|
||||
return /^\d+$/.test(value)
|
||||
? {or: [{'i.id': value}, {'ib.code': value}]}
|
||||
: {'i.name': {like: `%${value}%`}};
|
||||
: {or: [{'i.name': {like: `%${value}%`}}, {'ib.code': value}]};
|
||||
case 'id':
|
||||
return {'i.id': value};
|
||||
case 'description':
|
||||
|
|
Loading…
Reference in New Issue