add filter like

This commit is contained in:
2025-01-13 13:45:46 +07:00
parent 74607b679c
commit a7ceaf63cd

View File

@ -121,6 +121,11 @@ export default class CommonHelper {
whereVal[p + '_to'] = fr['to']; whereVal[p + '_to'] = fr['to'];
found = true; found = true;
} }
if (fr['like']) {
whereAttrPre.push('LOWER(' + p + ') like :' + p + '_like');
whereVal[p + '_like'] = '%' + fr['like'] + '%';;
found = true;
}
if (!found) { if (!found) {
whereAttrPre.push("LOWER(" + p + ") = :" + p); whereAttrPre.push("LOWER(" + p + ") = :" + p);