update search to lower

This commit is contained in:
2024-12-27 10:23:46 +07:00
parent e0788ae1a8
commit 67b9562cf6

View File

@ -121,10 +121,10 @@ export default class CommonHelper {
}
if (param.col_any_eq.length > 0) {
whereVal['filter_eq'] = filter_any_val;
whereVal['filter_eq'] = filter_any_val.toLowerCase();
}
if (param.col_any_like.length > 0) {
whereVal['filter_like'] = '%' + filter_any_val + '%';
whereVal['filter_like'] = '%' + filter_any_val.toLowerCase() + '%';
}
}
} catch (e: any) {
@ -158,7 +158,7 @@ export default class CommonHelper {
whereVal['filter_eq'] = param.filter.toLowerCase();
}
if (param.col_any_like.length > 0) {
whereVal['filter_like'] = '%' + param.filter + '%';
whereVal['filter_like'] = '%' + param.filter.toLowerCase() + '%';
}
}