refactor(finance)!: 事实维度与接口字段统一改名 channel

- migration 114 将 sales_daily_facts.fulfillment_mode 重命名为 channel
- DTO/查询参数/前端类型从 fulfillmentMode 统一为 channel
- 成本中心类型 FulfillmentMode 更名为 FulfillmentChannel,并补齐卡券/待分类/归档取值
- 销售事实响应分组改为 byChannel
This commit is contained in:
yml2213
2026-10-31 20:26:15 +08:00
parent 657e49f324
commit 6cd6401eca
38 changed files with 220 additions and 208 deletions
@@ -20,7 +20,7 @@ import {
* 管道 A:渠道判定。
*
* 只写 `fulfillment_channel / fulfillment_status / fulfillment_source /
* fulfillment_decided_at`,绝不写商品、成本、事实,也绝不改旧 fulfillment_mode。
* fulfillment_decided_at`,绝不写商品、成本、事实,也绝不改旧 channel。
*
* 判定顺序:
* 1. 运营锁定 → 跳过
@@ -1,7 +1,7 @@
/**
* 履约渠道 v2:渠道 / 状态 / 决策来源的唯一枚举定义。
*
* 与旧 `fulfillment_mode` 的区别:
* 与旧 `channel` 的区别:
* · 渠道只表达「谁来做」,不包含 pending/archived 这类状态;
* · 「待分类」是状态,不是渠道;
* · 「第三方卡券」是渠道,但没有履约载体,只做统计。