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
This commit is contained in:
46
docs/company-czrt6-data-imgration.md
Normal file
46
docs/company-czrt6-data-imgration.md
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
# 公司名称:池州瑞棠商贸
|
||||
|
||||
## mysql数据库配置信息
|
||||
|
||||
host ip: 101.37.101.6
|
||||
datasource:
|
||||
name: yangtangyoupin
|
||||
username: yangtangyoupin
|
||||
password: 5Fn8eWrbYFtAhCZw
|
||||
|
||||
---
|
||||
|
||||
## 数据清理任务
|
||||
|
||||
- **用户id数据范围**:92807,93058,92703,92665,93129,93087,93152,93151,93079,93186,93062,92999,92946,92920,92858,92717,92710,92704,93065,93082,93158,93125,93144,93060,92875,92544,93051,93122,93157,93175,93176,93034,92997,92948,93085,93126,93096,93184,92861,92909,93089,93090,93107,93131
|
||||
- 保留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中不存在,批量删除这些记录
|
||||
|
||||
---
|
||||
|
||||
## 相关文件
|
||||
|
||||
- docs/company-info-czrt6.md
|
||||
Reference in New Issue
Block a user