update filter common

This commit is contained in:
2025-01-13 14:55:44 +07:00
parent a7ceaf63cd
commit 4a79a17a79
2 changed files with 24 additions and 16 deletions

View File

@ -110,6 +110,7 @@ export default class CommonHelper {
if (p != 'any') {
if (!validate(f)) {
console.log('ffffff', f, p)
let found = false;
if (fr['from']) {
whereAttrPre.push(p + " >= :" + p + '_from');
@ -123,7 +124,7 @@ export default class CommonHelper {
}
if (fr['like']) {
whereAttrPre.push('LOWER(' + p + ') like :' + p + '_like');
whereVal[p + '_like'] = '%' + fr['like'] + '%';;
whereVal[p + '_like'] = '%' + fr['like'].toLowerCase() + '%';;
found = true;
}