diff --git a/src/helpers/common.ts b/src/helpers/common.ts index ad5f3fb..1322d67 100644 --- a/src/helpers/common.ts +++ b/src/helpers/common.ts @@ -121,6 +121,11 @@ export default class CommonHelper { whereVal[p + '_to'] = fr['to']; found = true; } + if (fr['like']) { + whereAttrPre.push('LOWER(' + p + ') like :' + p + '_like'); + whereVal[p + '_like'] = '%' + fr['like'] + '%';; + found = true; + } if (!found) { whereAttrPre.push("LOWER(" + p + ") = :" + p);