Files
integral-shop/company-czc231-data-imgration.md
apple c6d15d8094 docs: 数据迁移说明 — 统一为「数据清理」并补充日志表规则
- company-data-imgration.md:self/share/coupon 日志保留范围说明;去掉过时分支任务句
- company-czc231-data-imgration.md:章节标题与鹏然文档对齐

Made-with: Cursor
2026-04-05 12:46:04 +08:00

36 lines
1.3 KiB
Markdown
Raw Permalink 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.
# 公司名称:宝应晨召春商贸
## mysql数据库配置信息
host ip: 8.136.120.231
datasource:
name: yangtangyoupin
username: yangtangyoupin
password: 5Fn8eWrbYFtAhCZw
## 数据清理任务
- 保留的**用户数据范围**wa_users.id in (92485,92494,92815,93125,92917,92322,92807,92599,92991,93048,93089,93180,93187,93185,93147,92806,92871,93184,93017,93023,93109,93177,93202,93086,93156,93197,93050,93058,93112,93210,93115,93195,93203,93192,93188,93183,93181,93178,93175,93174),删除其余用户数据
- wa_order
只保留“created_at >= 2026-03-31”并且 user_id 在用户数据范围的订单,删除其余数据
(库表对应 `seller_id` / `buyer_id`,任一侧在保留用户集合内即保留该订单。)
- wa_merchandise
只保留“created_at >= 2026-03-31”并且seller_id或buyer_id在用户数据范围的寄售商品删除其余数据
(当前库表字段为 `user_id` 表示卖家,实现时按 `user_id` 与日期条件过滤。)
- wa_selfbonus_log
只保留 `user_id` 在用户数据范围内的记录,删除其余数据
- wa_sharebonus_log
只保留 `user_id` 在用户数据范围内的记录,删除其余数据
- wa_coupon_log
只保留 `user_id` 在用户数据范围内的记录,删除其余数据
## 相关文件
- company-info.md