feat: 订单创建时快照买家手机号/昵称和套餐类型
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Has been cancelled

新增字段:
- tb_order: buyer_phone, buyer_nickname(个人客户下单时快照)
- tb_order_item: package_type(套餐类型快照)

后台订单列表支持按 buyer_phone 精确过滤查询。

OpenSpec: order-buyer-snapshot
This commit is contained in:
2026-04-10 17:12:56 +08:00
parent 3cb16804a4
commit 5496cb58aa
20 changed files with 489 additions and 49 deletions

View File

@@ -817,6 +817,9 @@ components:
data_usage_mb:
description: 已用真流量(MB)
type: integer
enable_virtual_data:
description: 是否启用虚流量
type: boolean
expires_at:
description: 到期时间(待生效套餐为空)
format: date-time
@@ -4274,6 +4277,9 @@ components:
description: 批次号
maxLength: 100
type: string
card_category:
description: 卡业务类型 (normal:普通卡, industry:行业卡),默认 normal
type: string
carrier_id:
description: 运营商ID
minimum: 1
@@ -4320,6 +4326,9 @@ components:
batch_no:
description: 批次号
type: string
card_category:
description: 卡业务类型 (normal:普通卡, industry:行业卡)
type: string
carrier_id:
description: 运营商ID
minimum: 0
@@ -4393,6 +4402,9 @@ components:
batch_no:
description: 批次号
type: string
card_category:
description: 卡业务类型 (normal:普通卡, industry:行业卡)
type: string
carrier_id:
description: 运营商ID
minimum: 0
@@ -4831,6 +4843,10 @@ components:
package_name:
description: 套餐名称
type: string
package_type:
description: 套餐类型快照 (formal:正式套餐, addon:加油包)
nullable: true
type: string
quantity:
description: 数量
type: integer
@@ -4872,6 +4888,14 @@ components:
description: 买家ID
minimum: 0
type: integer
buyer_nickname:
description: 买家昵称快照(个人客户下单时记录)
nullable: true
type: string
buyer_phone:
description: 买家手机号快照(个人客户下单时记录)
nullable: true
type: string
buyer_type:
description: 买家类型 (personal:个人客户, agent:代理商)
type: string
@@ -14864,6 +14888,13 @@ paths:
description: 资产标识符ICCID 或 VirtualNo精确查询
maxLength: 100
type: string
- description: 买家手机号精确查询
in: query
name: buyer_phone
schema:
description: 买家手机号精确查询
maxLength: 20
type: string
responses:
"200":
content: