feat: refs #7544
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Robert Ferrús 2024-06-06 11:54:39 +02:00
parent 1c6e881273
commit ef50d493f1
1 changed files with 2 additions and 2 deletions

View File

@ -10,13 +10,13 @@ DO BEGIN
SELECT id INTO vClaimStete
FROM claimState cs
WHERE cs.code = 'canceled'
WHERE cs.code = 'canceled';
UPDATE claim c
JOIN claimState cs ON cs.id = c.claimStateFk
SET c.claimStateFk = vClaimStete
WHERE c.created < util.VN_CURDATE() - INTERVAL 2 MONTH
AND cs.code IN('incomplete','coming','waiting','out')
AND cs.code IN('incomplete','coming','waiting','out');
END$$
DELIMITER ;