perf(salix): refs #6321 #7677 itemLackDetail

This commit is contained in:
Javier Segarra 2024-09-17 16:43:09 +02:00
parent 03fcabd7f6
commit 36297009e1
1 changed files with 3 additions and 3 deletions

View File

@ -87,10 +87,10 @@ module.exports = Self => {
[itemFk, 2]);
// if (filter.where.alertLevel) {
// stmt.merge({
// sql: `AND ts.alertLevel=?`, params: ['FREE']});
stmt.merge({
sql: `AND ${filter.where.alertLevel ? '' : 'NOT'} ts.alertLevel=?`, params: [0]});
// }
// stmt.merge(conn.makeWhere(filter));
// stmt.merge(conn.makeWhere(filter.where));
const sql = ParameterizedSQL.join([stmt], ';');
const result = await conn.executeStmt(sql, myOptions);
return result;