refs #6321 perf: query to retrieve results

This commit is contained in:
Javier Segarra 2024-03-15 09:33:06 +01:00
parent f83f7808c8
commit 6c0706cc56
1 changed files with 5 additions and 4 deletions

View File

@ -37,19 +37,20 @@ module.exports = Self => {
st.code,
t.id ticketFk,
t.nickname,
t.shipped,
t.hour,
s.quantity,
ag.name,
ag.name agName,
ts.alertLevel alertLevel,
st.name stateName,
st.id stateId,
s.itemFk itemFk,
al.code alertLevelCode,
z.name,
z.name zoneName,
z.hour theoreticalhour,
cn.isRookie,
sc.saleClonedFk turno,
tr.saleFk peticionCompra,
IF(sc.saleClonedFk, 1, 0 ) as turno,
IF(tr.saleFk , 1, 0 ) as peticionCompra,
t.hour minTimed
FROM
vn.sale s