Files
gaokao-volunteer-system/docs/DATA_DELETION_SOP.md
Hermes Agent a97cfb2058
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
docs: add service terms and deletion sop
2026-06-14 19:38:30 +08:00

56 lines
1.2 KiB
Markdown
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.
# DATA_DELETION_SOP
最后更新: 2026-06-14
## 1. 目的
给运营/开发一个最小可执行的数据删除流程,确保“用户要求删除”时不只删数据库、不遗漏报告文件。
## 2. 适用场景
- 用户主动申请删除订单和资料
- 售后完结后按规则清理
- 内部误录/测试订单清理(非生产争议中)
## 3. 删除前检查
1. 确认订单号
2. 确认申请渠道web / wechat / xianyu / school / admin
3. 判断是否存在保留例外:
- 退款争议处理中
- 支付审计期内
- 投诉或法律保留期内
## 4. 最小执行步骤
1. 导出或记录最小审计信息
- 订单号
- 执行人
- 执行时间
- 删除原因
2. 删除订单主数据
3. 删除关联资料提交记录
4. 删除报告 HTML/PDF 文件
5. 删除关联通知记录
6. 复核文件路径已不存在
## 5. 当前代码基础
已具备:
- `OrdersDAO.delete()`
- ON DELETE CASCADE 对部分关联表生效
仍需人工补位:
- 报告文件删除
- 删除审计记录
- 清理脚本化
## 6. 当前对外口径限制
在自动删除脚本、删除审计表、后台删除入口上线前,只能说:
- 已建立删除 SOP
- 不得说“删除流程已完全产品化”