feat: add filter by item.longName
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2021-12-22 13:16:45 +01:00
parent 3b5b490a78
commit a6e5123949
1 changed files with 4 additions and 1 deletions

View File

@ -112,7 +112,10 @@ module.exports = Self => {
case 'search': case 'search':
return /^\d+$/.test(value) return /^\d+$/.test(value)
? {or: [{'i.id': value}, codeWhere]} ? {or: [{'i.id': value}, codeWhere]}
: {or: [{'i.name': {like: `%${value}%`}}, codeWhere]}; : {or: [
{'i.name': {like: `%${value}%`}},
{'i.longName': {like: `%${value}%`}},
codeWhere]};
case 'id': case 'id':
case 'isActive': case 'isActive':
case 'typeFk': case 'typeFk':