diff --git a/server/internal/api/exports.go b/server/internal/api/exports.go index aecf11a..8a6879f 100644 --- a/server/internal/api/exports.go +++ b/server/internal/api/exports.go @@ -1146,6 +1146,15 @@ func transformRow(ds string, fields []string, vals []string) []string { } continue } + // goods_voucher_subject_config.type - 主体类型 + if f == "goods_voucher_subject_config.type" { + if n := parseIntVal(v); n >= 0 { + if label, ok := constants.VoucherSubjectType[n]; ok { + vals[i] = label + } + } + continue + } // order_cash.channel - 红包渠道 if f == "order_cash.channel" { if n := parseIntVal(v); n >= 0 { diff --git a/server/internal/constants/enums.go b/server/internal/constants/enums.go index 613af60..2244fe2 100644 --- a/server/internal/constants/enums.go +++ b/server/internal/constants/enums.go @@ -217,6 +217,13 @@ var YMTVoucherReceiveMode = map[int]string{ 2: "账号领取", } +// VoucherSubjectType 立减金主体类型映射 +var VoucherSubjectType = map[int]string{ + 1: "支付宝", + 2: "微信", + 3: "云闪付", +} + // OrderDigitOrderType 数字订单类型映射 var OrderDigitOrderType = map[int]string{ 1: "直充", diff --git a/server/internal/schema/fields.go b/server/internal/schema/fields.go index f1431b3..5e399f9 100644 --- a/server/internal/schema/fields.go +++ b/server/internal/schema/fields.go @@ -199,7 +199,7 @@ func AllLabels() map[string]string { "goods_voucher_batch.update_time": "更新时间", "goods_voucher_subject_config.id": "主体配置ID", "goods_voucher_subject_config.name": "主体名称", - "goods_voucher_subject_config.type": "主体类型", + "goods_voucher_subject_config.type": "立减金主体类型", "goods_voucher_subject_config.create_time": "创建时间", "merchant.id": "客户ID", "merchant.name": "客户名称",