This repository has been archived on 2024-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
smart-tag/db/insertTicket.js

15 lines
449 B
JavaScript

const con = require('./connect');
function insertTicket(ticket, shelving, level) {
con.con.connect(function(err) {
if (err) throw err;
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;