update common helper

This commit is contained in:
2024-12-02 21:13:24 +07:00
parent d6dbba2f49
commit f130efc347

View File

@ -164,17 +164,7 @@ export default class CommonHelper {
} }
} }
const whereAttr = whereAttrPre.join(' and ') + (whereAttrPre.length > 0 && param.additional_where != '' ? ' and ' : '') + (param.additional_where ?? ''); const whereAttr = whereAttrPre.join(' and ') + (whereAttrPre.length > 0 && param.additional_where && param.additional_where != '' ? ' and ' : '') + (param.additional_where ?? '');
// let whereAttr = '';
// if (whereAttrPre.length > 0) {
// whereAttr = whereAttrPre.join(' and ') + (whereAttrPre.length > 0 && param.additional_where != '' ? ' and ' : '') + param.additional_where;
// } else {
// whereAttr += param.additional_where;
// }
// console.log('whereAttr', whereAttr)
return { whereAttr, whereVal }; return { whereAttr, whereVal };
} }