Files
integral-shop/docs/byjyw149-data-imgration.md
danaisuiyuan eb349ffa74 chore(czcf82): Spring profiles, migration docs, and shop URLs
Add per-shop application YAML, company data migration notes and SQL
supplements, and point admin, API, and uni-app at czcf82 endpoints.

Made-with: Cursor
2026-04-26 15:55:22 +08:00

43 lines
1.5 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.
# 公司名称:宝应金雅文商贸
## mysql数据库配置信息
host ip: 8.140.218.149
datasource:
name: yangtangyoupin
username: yangtangyoupin
password: 5Fn8eWrbYFtAhCZw
## 数据清理任务
- **用户id数据范围**92884,92959,93001,93041,93151,93162,93243,92792,92885,93063,91757,93149,93154,93165,93209,93215,93242,92880,93098,93141,93191,93197,93235,92754,92850,93003,93095,93208
- 保留wa_users表中id在用户id数据范围的 ,删除其余用户数据
- 保留eb_user表中uid在用户id数据范围的 ,删除其余用户数据
- wa_order
只保留“created_at >= 2026-04-16”并且 user_id 在用户id数据范围的订单删除其余数据
(库表对应 `seller_id` / `buyer_id`,任一侧在保留用户集合内即保留该订单。)
- wa_merchandise
只保留“created_at >= 2026-04-16”并且seller_id或buyer_id在用户id数据范围的寄售商品删除其余数据
(当前库表字段为 `user_id` 表示卖家,实现时按 `user_id` 与日期条件过滤。)
- wa_selfbonus_log
只保留 `user_id` 在用户id数据范围内的记录删除其余数据
- wa_sharebonus_log
只保留 `user_id` 在用户id数据范围内的记录删除其余数据
- wa_coupon_log
只保留 `user_id` 在用户id数据范围内的记录删除其余数据
- wa_withdraw
清空wa_withdraw表中数据
- 写一个sql在eb_user_integral_record中通过uid字段查询用户看哪些用户在eb_user中不存在批量删除这些记录
## 相关文件
- company-info-byjyw149.md