selectSql ordered
This commit is contained in:
parent
8ae770c8cc
commit
77bcc90325
|
@ -6,7 +6,8 @@ function select(collectionFk, callback){
|
|||
FROM ticketCollection tc
|
||||
JOIN ticket t ON t.id = tc.ticketFk JOIN client c ON t.clientFk = c.id
|
||||
JOIN agencyMode am ON am.id = t.agencyModeFk
|
||||
WHERE tc.collectionFk = ${collectionFk}`;
|
||||
WHERE tc.collectionFk = ${collectionFk}
|
||||
ORDER BY tc.wagon, tc.level`;
|
||||
|
||||
con.con.query(consSql, function (err, result, fields) {
|
||||
console.log(result);
|
||||
|
|
Reference in New Issue