add filter like
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user