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

12 lines
358 B
JavaScript
Raw Normal View History

2021-03-26 15:26:17 +00:00
const con = require('./connect');
function insertTicket(ticket, shelving, level) {
2021-03-30 06:06:07 +00:00
let sql = `UPDATE vn.smartTag
SET ticketFk = ${ticket}
2021-03-26 15:26:17 +00:00
WHERE level=${level} && shelvingFk='${shelving}';`;
2021-03-30 06:06:07 +00:00
con.con.query(sql, function(err, result) {
if (err) throw err;
2021-03-26 15:26:17 +00:00
});
}
exports.insertTicket = insertTicket;