7729-devToTest_2430 #2739
|
@ -10,13 +10,13 @@ DO BEGIN
|
||||||
|
|
||||||
SELECT id INTO vClaimStete
|
SELECT id INTO vClaimStete
|
||||||
FROM claimState cs
|
FROM claimState cs
|
||||||
WHERE cs.code = 'canceled'
|
WHERE cs.code = 'canceled';
|
||||||
|
|
||||||
UPDATE claim c
|
UPDATE claim c
|
||||||
JOIN claimState cs ON cs.id = c.claimStateFk
|
JOIN claimState cs ON cs.id = c.claimStateFk
|
||||||
SET c.claimStateFk = vClaimStete
|
SET c.claimStateFk = vClaimStete
|
||||||
WHERE c.created < util.VN_CURDATE() - INTERVAL 2 MONTH
|
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$$
|
END$$
|
||||||
DELIMITER ;
|
DELIMITER ;
|
||||||
|
|
Loading…
Reference in New Issue