feat(salix): #7671 define isDestiny field in model #2681

Merged
jsegarra merged 14 commits from 7671_dense_itemFixedPrices into dev 2024-09-09 12:17:57 +00:00
2 changed files with 7 additions and 6 deletions
Showing only changes of commit dbd8f94555 - Show all commits

View File

@ -1,4 +1,5 @@
CREATE USER 'vn'@'localhost'; CREATE USER 'vn'@'localhost';
INSERT INTO `ormConfig`(`id`,`selectLimit`) VALUES(1,1000);
GRANT SELECT, GRANT SELECT,
INSERT, INSERT,

View File

@ -186,12 +186,12 @@ module.exports = Self => {
} }
if (ctx.req.query.showBadDates === 'true') { if (ctx.req.query.showBadDates === 'true') {
stmt.merge({ stmt.merge({

si aqui lo pones en el objeto filter.where, luego solo tienes que hacer stmt.merge(conn.makeWhere(filter.where));
ademas conctatenar sql no suele ser buena opcion

si aqui lo pones en el objeto filter.where, luego solo tienes que hacer stmt.merge(conn.makeWhere(filter.where)); ademas conctatenar sql no suele ser buena opcion
sql: `WHERE sql: ` WHERE
fp.started> util.VN_CURDATE() `}); fp.started> util.VN_CURDATE() `});
} } else
stmt.merge(conn.makeWhere(filter.where));
stmt.merge(conn.makeSuffix(filter)); stmt.merge(conn.makeOrderBy(filter.order));
stmt.merge(conn.makeLimit(filter));
const fixedPriceIndex = stmts.push(stmt) - 1; const fixedPriceIndex = stmts.push(stmt) - 1;
const sql = ParameterizedSQL.join(stmts, ';'); const sql = ParameterizedSQL.join(stmts, ';');
const result = await conn.executeStmt(sql, myOptions); const result = await conn.executeStmt(sql, myOptions);