add user preference
This commit is contained in:
@ -93,7 +93,7 @@ export default class CommonHelper {
|
||||
return template
|
||||
}
|
||||
|
||||
static handleFilter(param: { filter: any, col_any_eq: string[], col_any_like: string[] }): any {
|
||||
static handleFilter(param: { filter: any, col_any_eq: string[], col_any_like: string[], additional_where?: string }): any {
|
||||
const whereAttrPre = [];
|
||||
const whereVal: any = {};
|
||||
|
||||
@ -187,7 +187,7 @@ export default class CommonHelper {
|
||||
}
|
||||
}
|
||||
|
||||
const whereAttr = whereAttrPre.join(' and ');
|
||||
const whereAttr = whereAttrPre.join(' and ') + (whereAttrPre.length > 0 && param.additional_where != '' ? ' and ' : '') + param.additional_where;
|
||||
|
||||
|
||||
return { whereAttr, whereVal };
|
||||
|
||||
Reference in New Issue
Block a user