ai_member_xiaoxi/memory/2026-06-18.md
2026-06-19 08:00:01 +08:00

30 lines
2.0 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.

# 2026-06-18 工作日志
## 细水入海变更同步
- [陈逸鸫 00:56] 同步「细水入海」近期变更:
- full_refresh 改回 @大麦,小溪不再跑 Bot 三表→订单汇总 merge
- 新增「订单-财务口径」tab (2hSLSg),仅陈逸鸫点名时触发
- 财务 tab 从 2smjwA 出发,不读三表全量线索
- Y=0 全额退/无效单(之前是留空,改为写 0
- 不碰 r1 表头 + r2 合计行Cursor 公式)
- W 列留空由 Cursor 写公式
- 新增「销售结算汇总」r8ZHO由 Cursor 从财务 tab 生成,小溪无需操作
## 脚本更新
- `scripts/finance_orders_refresh.py` v3: Y 列全额退→0之前留空
- `scripts/sales_leads_full_refresh.py`: 更新 pick_valid_order 逻辑 + 汇总格式 A-W 23列
## 退费订单校验规则更新
- [李承龙确认 2026-06-18 10:31] 更新 MEMORY.md 退费订单校验规则:
1. 一笔订单可能对应多笔退费记录,退费金额需 SUM 累加
2. order_status=4 直接视为退费order_status=3 需匹配退费表 status=3 记录才视为退费
3. GSV、转化率分子剔除退费等所有涉及退费判定的口径同步更新
## 退费规则应用到 skill 和脚本
- [李承龙确认 2026-06-18 14:52] 将新退费规则应用到以下文件:
1. `skills/vala-order-amortization-stat/sql/_common.sql` — all_refund_records CTE 改为 UNION ALLout_trade_no + trade_no后 SUM 聚合order_base 中 has_refund/is_full_refund 增加 order_status=4 直接判定逻辑
2. `skills/vala-order-amortization-stat/sql/prepaid.sql` — 同步更新 all_refund_records CTE 和退费判定逻辑
3. `skills/vala-order-amortization-stat/SKILL.md` — 更新退费范围说明和表关联规则
4. `scripts/finance_orders_refresh.py` — query_all_orders 同时按 trade_no 和 out_trade_no 匹配退费、SUM 累加;退费判定增加 order_status=4 直接判定
5. `SKILL_REGISTRY.md` — 均摊技能追加变更记录finance_orders_refresh.py 补登记