refactor: refs #7690 unify workerTimeControlParams with workerTimeControlConfig #3191
|
@ -33,10 +33,10 @@ DO BEGIN
|
|||
FROM printQueue WHERE statusCode = 'queued';
|
||||
|
||||
SELECT isAlreadyNotified INTO vIsAlreadyNotified
|
||||
FROM printingQueueConfig;
|
||||
FROM printingQueueCheck;
|
||||
|
||||
IF (SELECT lastCount FROM printingQueueConfig) = vCurrentCount AND
|
||||
(SELECT lastCheckSum FROM printingQueueConfig) = vCheckSum AND
|
||||
IF (SELECT lastCount FROM printingQueueCheck) = vCurrentCount AND
|
||||
(SELECT lastCheckSum FROM printingQueueCheck) = vCheckSum AND
|
||||
vIsAlreadyNotified = FALSE AND vCurrentCount > 0
|
||||
THEN
|
||||
|
||||
|
@ -67,16 +67,16 @@ DO BEGIN
|
|||
CONCAT('Hay ', vCurrentCount, ' lineas bloqueadas', vTableQueue, '</table>')
|
||||
);
|
||||
|
||||
UPDATE printingQueueConfig SET isAlreadyNotified = TRUE;
|
||||
UPDATE printingQueueCheck SET isAlreadyNotified = TRUE;
|
||||
END IF;
|
||||
|
||||
IF (SELECT lastCount FROM printingQueueConfig) > vCurrentCount AND
|
||||
IF (SELECT lastCount FROM printingQueueCheck) > vCurrentCount AND
|
||||
vIsAlreadyNotified = TRUE
|
||||
THEN
|
||||
UPDATE printingQueueConfig SET isAlreadyNotified = FALSE;
|
||||
UPDATE printingQueueCheck SET isAlreadyNotified = FALSE;
|
||||
END IF;
|
||||
|
||||
UPDATE printingQueueConfig
|
||||
UPDATE printingQueueCheck
|
||||
SET lastCount = vCurrentCount,
|
||||
lastCheckSum = vCheckSum;
|
||||
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
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