Files
hhrs/docs/石化减免卷_关闭改核销_回滚_20261116.sql
T

9 lines
816 B
PL/PgSQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- xuchao: 怀化石化(减免卷)"已关闭→已核销"迁移的回滚段(2026-11-16 执行,UAT=生产库 dscp_business_uat)
-- 回滚脚本(勿随迁移执行;仅当需要撤销时手动跑):
-- BEGIN;
-- DELETE FROM card_check WHERE id IN (926120000000001,926120000000002,926120000000003,926120000000004,926120000000005,926120000000006,926120000000007);
-- UPDATE card_appointment SET status=2, updated_by=1 WHERE id IN (859787077677637,864426506904773,864779270436165,865456274982533,867141847644421,867991347166021,869714399186053) AND status=4;
-- COMMIT;
-- 注意:回滚只恢复数据状态;资源开关 card_resource_rule.is_appointment_count(851222303983301)=1
-- 是运营 2026-11-16 09:47 在管理后台开启的(防再次自动取消),是否一并关闭请另行决策。