update filter common
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user