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