fix: hotFix limit 5
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e9015f6c05
commit
da0e735fb2
|
@ -33,7 +33,7 @@ module.exports = Self => {
|
||||||
|
|
||||||
const [isParkingToReview] = await Self.rawSql(`
|
const [isParkingToReview] = await Self.rawSql(`
|
||||||
SELECT COUNT(p.id) parkingToReview
|
SELECT COUNT(p.id) parkingToReview
|
||||||
FROM vn.parking p
|
FROM vn.parking p
|
||||||
JOIN vn.sector s ON s.id = p.sectorFk
|
JOIN vn.sector s ON s.id = p.sectorFk
|
||||||
JOIN vn.productionConfig pc
|
JOIN vn.productionConfig pc
|
||||||
WHERE p.code = ? AND s.code = pc.sectorToCode;`,
|
WHERE p.code = ? AND s.code = pc.sectorToCode;`,
|
||||||
|
@ -59,11 +59,12 @@ module.exports = Self => {
|
||||||
JOIN vn.productionConfig pc
|
JOIN vn.productionConfig pc
|
||||||
WHERE is2.shelvingFk <> ?
|
WHERE is2.shelvingFk <> ?
|
||||||
AND s.code = pc.sectorFromCode)
|
AND s.code = pc.sectorFromCode)
|
||||||
SELECT ti.itemFK, tis.shelvingFk
|
SELECT ti.itemFK, tis.shelvingFk
|
||||||
FROM tItemShelving ti
|
FROM tItemShelving ti
|
||||||
JOIN tItemInSector tis ON tis.itemFk = ti.itemFk
|
JOIN tItemInSector tis ON tis.itemFk = ti.itemFk
|
||||||
JOIN vn.productionConfig pc
|
JOIN vn.productionConfig pc
|
||||||
WHERE ti.created + INTERVAL pc.itemOlderReviewHours HOUR < tis.created ;`,
|
WHERE ti.created + INTERVAL pc.itemOlderReviewHours HOUR < tis.created
|
||||||
|
LIMIT 10;`,
|
||||||
[shelvingFk, shelvingFk], myOptions);
|
[shelvingFk, shelvingFk], myOptions);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue