fix: 统一佣金状态常量并修复佣金明细关联查询
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m33s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m33s
- 删除 model/commission.go 中与 constants 包冲突的旧常量(值=1/2) - 所有服务层改用 constants.CommissionStatusReleased(值=3)写入和查询 - 数据库迁移:status 1→3(已发放),2→4(已失效) - 修复佣金明细列表接口,通过 JOIN 关联返回 order_no、iccid、virtual_no、order_created_at - 新增 seller_shop_id / seller_shop_name 销售来源字段 - 统计接口过滤条件从精确匹配改为排除无效(NOT IN 4,99) - 更新 OpenAPI 文档及 commission-record-query spec
This commit is contained in:
@@ -6182,8 +6182,15 @@ components:
|
||||
order_no:
|
||||
description: 订单号
|
||||
type: string
|
||||
seller_shop_id:
|
||||
description: 销售来源店铺ID
|
||||
minimum: 0
|
||||
type: integer
|
||||
seller_shop_name:
|
||||
description: 销售来源店铺名称
|
||||
type: string
|
||||
status:
|
||||
description: 状态 (1:已入账, 2:已失效)
|
||||
description: 状态 (1:已冻结, 2:解冻中, 3:已发放, 4:已失效)
|
||||
type: integer
|
||||
status_name:
|
||||
description: 状态名称
|
||||
|
||||
Reference in New Issue
Block a user