add user preference

This commit is contained in:
2024-12-02 13:47:17 +07:00
parent a93d4db18d
commit 2722ba8d95
5 changed files with 67 additions and 55 deletions

View File

@ -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 };