update user

This commit is contained in:
2024-12-02 14:02:14 +07:00
parent 79eb48631b
commit 9e8130df53

View File

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