refactor: refs #7690 modify printQueue_check and rename tables
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
2a1c0ef2af
commit
a9d45bde4c
|
@ -33,10 +33,10 @@ DO BEGIN
|
||||||
FROM printQueue WHERE statusCode = 'queued';
|
FROM printQueue WHERE statusCode = 'queued';
|
||||||
|
|
||||||
SELECT isAlreadyNotified INTO vIsAlreadyNotified
|
SELECT isAlreadyNotified INTO vIsAlreadyNotified
|
||||||
FROM printingQueueCheck;
|
FROM printingQueueConfig;
|
||||||
|
|
||||||
IF (SELECT lastCount FROM printingQueueCheck) = vCurrentCount AND
|
IF (SELECT lastCount FROM printingQueueConfig) = vCurrentCount AND
|
||||||
(SELECT lastCheckSum FROM printingQueueCheck) = vCheckSum AND
|
(SELECT lastCheckSum FROM printingQueueConfig) = vCheckSum AND
|
||||||
vIsAlreadyNotified = FALSE AND vCurrentCount > 0
|
vIsAlreadyNotified = FALSE AND vCurrentCount > 0
|
||||||
THEN
|
THEN
|
||||||
|
|
||||||
|
@ -67,16 +67,16 @@ DO BEGIN
|
||||||
CONCAT('Hay ', vCurrentCount, ' lineas bloqueadas', vTableQueue, '</table>')
|
CONCAT('Hay ', vCurrentCount, ' lineas bloqueadas', vTableQueue, '</table>')
|
||||||
);
|
);
|
||||||
|
|
||||||
UPDATE printingQueueCheck SET isAlreadyNotified = TRUE;
|
UPDATE printingQueueConfig SET isAlreadyNotified = TRUE;
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
IF (SELECT lastCount FROM printingQueueCheck) > vCurrentCount AND
|
IF (SELECT lastCount FROM printingQueueConfig) > vCurrentCount AND
|
||||||
vIsAlreadyNotified = TRUE
|
vIsAlreadyNotified = TRUE
|
||||||
THEN
|
THEN
|
||||||
UPDATE printingQueueCheck SET isAlreadyNotified = FALSE;
|
UPDATE printingQueueConfig SET isAlreadyNotified = FALSE;
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
UPDATE printingQueueCheck
|
UPDATE printingQueueConfig
|
||||||
SET lastCount = vCurrentCount,
|
SET lastCount = vCurrentCount,
|
||||||
lastCheckSum = vCheckSum;
|
lastCheckSum = vCheckSum;
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
RENAME TABLE vn.workerTimeControlParams TO vn.workerTimeControlParams__;
|
||||||
|
ALTER TABLE vn.workerTimeControlParams__ COMMENT='@deprecated 2024-11-19';
|
||||||
|
|
||||||
|
RENAME TABLE vn.printingQueueCheck TO vn.printingQueueConfig;
|
Loading…
Reference in New Issue