refactor: refs #7398 Refactor and change ekt_scan #2494

Merged
guillermo merged 2 commits from 7398-ektScan into dev 2024-05-22 06:31:07 +00:00
1 changed files with 11 additions and 2 deletions
Showing only changes of commit 0d620c6f33 - Show all commits

View File

@ -79,8 +79,6 @@ BEGIN
klo = vKlo
AND auction = vAuction
AND agj = vShortAgj
) OR (
klo = auction -- No se si se refiere a esto
)
)
ORDER BY agj DESC, fec DESC
@ -122,6 +120,17 @@ BEGIN
SELECT COUNT(*) FROM tmp.ekt INTO vIsFound;
END IF;
-- Solo campo agj
IF NOT vIsFound THEN
INSERT INTO tmp.ekt
SELECT id
FROM ektRecent
WHERE agj = vShortAgj;
SELECT COUNT(*) FROM tmp.ekt INTO vIsFound;
END IF;
END CASE;
IF vIsFound THEN