parent
03fcabd7f6
commit
36297009e1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue