changes
This commit is contained in:
parent
2c7cce4b36
commit
e3a6f97a51
|
@ -0,0 +1,13 @@
|
|||
const ParameterizedSQL = require('loopback-connector').ParameterizedSQL;
|
||||
|
||||
async function printServer(){
|
||||
const stmt = new ParameterizedSQL(
|
||||
`SELECT * FROM campaign`);
|
||||
stmt.merge(conn.makeWhere(filter.where));
|
||||
stmt.merge('GROUP BY code');
|
||||
stmt.merge(conn.makePagination(filter));
|
||||
|
||||
return conn.executeStmt(stmt);
|
||||
}
|
||||
|
||||
setInterval(printServer, 2000);
|
|
@ -0,0 +1,2 @@
|
|||
SELECT *
|
||||
FROM vn.printQueue;
|
Loading…
Reference in New Issue