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/selectCollection.js

12 lines
392 B
JavaScript

const con = require('./connect');
function selectCollectionSmartTag(collectionFk, callback) {
let consSql = `SELECT code, ticketFk, level, wagon, shelvingFk FROM vn.collectionSmartTag WHERE collectionFk = ${collectionFk}`;
con.con.query(consSql, function(err, result, fields) {
callback(null, result);
});
}
exports.selectCollectionSmartTag = selectCollectionSmartTag;