names select
This commit is contained in:
parent
f976cd2966
commit
3e5e2487af
|
@ -6,7 +6,7 @@ const con = require('./connect')
|
|||
var x;
|
||||
function select(collectionFk, callback){
|
||||
|
||||
let consSql = `SELECT t.id, c.name AS client, am.name AS agencia
|
||||
let consSql = `SELECT t.id AS ticket, c.name AS Client, am.name AS Agency, tc.level
|
||||
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
|
||||
|
|
Reference in New Issue