#6964 _ itemOlder #2197
|
@ -46,10 +46,9 @@ module.exports = Self => {
|
||||||
SELECT COUNT(ish.id) countItemOlder
|
SELECT COUNT(ish.id) countItemOlder
|
||||||
FROM vn.itemShelving ish
|
FROM vn.itemShelving ish
|
||||||
JOIN (
|
JOIN (
|
||||||
sergiodt marked this conversation as resolved
Outdated
|
|||||||
SELECT ish.itemFk, created,shelvingFk, p.code
|
SELECT ish.itemFk, created,shelvingFk
|
||||||
sergiodt marked this conversation as resolved
Outdated
carlosap
commented
en la subconsulta el p.code y el LEFT JOIN vn.parking p ON p.id = s.parkingFk sirven para algo?? en la subconsulta el p.code y el LEFT JOIN vn.parking p ON p.id = s.parkingFk sirven para algo??
sergiodt
commented
Llevat Llevat
|
|||||||
FROM vn.itemShelving ish
|
FROM vn.itemShelving ish
|
||||||
JOIN vn.shelving s ON ish.shelvingFk = s.code
|
JOIN vn.shelving s ON ish.shelvingFk = s.code
|
||||||
LEFT JOIN vn.parking p ON p.id = s.parkingFk
|
|
||||||
WHERE ish.shelvingFk = ?
|
WHERE ish.shelvingFk = ?
|
||||||
)sub ON sub.itemFK = ish.itemFk
|
)sub ON sub.itemFK = ish.itemFk
|
||||||
JOIN vn.shelving s ON s.code = ish.shelvingFk
|
JOIN vn.shelving s ON s.code = ish.shelvingFk
|
||||||
sergiodt marked this conversation as resolved
Outdated
alexm
commented
falta gastar la transaccio (...shelvingFkOut, itemFk, itemFk], options) falta gastar la transaccio (...shelvingFkOut, itemFk, itemFk], options)
sergiodt
commented
Llevat options Llevat options
alexm
commented
Es ficarlo sino no gastarà la transaccio Es ficarlo sino no gastarà la transaccio
sergiodt
commented
L'he posat però no veia que fera falta... L'he posat però no veia que fera falta...
|
|||||||
|
|
Loading…
Reference in New Issue
Tabulació