12 lines
358 B
JavaScript
12 lines
358 B
JavaScript
const con = require('./connect');
|
|
|
|
function insertTicket(ticket, shelving, level) {
|
|
let sql = `UPDATE vn.smartTag
|
|
SET ticketFk = ${ticket}
|
|
WHERE level=${level} && shelvingFk='${shelving}';`;
|
|
con.con.query(sql, function(err, result) {
|
|
if (err) throw err;
|
|
});
|
|
}
|
|
exports.insertTicket = insertTicket;
|