From c64fa29617d6202246e174082cc3951442254ac6 Mon Sep 17 00:00:00 2001 From: zhouyonggao <1971162852@qq.com> Date: Thu, 18 Dec 2025 16:01:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(exporter):=20=E7=A7=BB=E9=99=A4=20order=5Fv?= =?UTF-8?q?oucher.out=5Fbiz=5Fno=20=E5=AD=97=E6=AE=B5=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 从 sqlbuilder 中移除对 order_voucher.out_biz_no 字段的空字符串占位处理 - 从字段白名单中删除 order_voucher.out_biz_no - 从字段标签映射中移除 order_voucher.out_biz_no 的描述信息 --- server/internal/exporter/sqlbuilder.go | 5 ----- server/internal/schema/fields.go | 2 -- 2 files changed, 7 deletions(-) diff --git a/server/internal/exporter/sqlbuilder.go b/server/internal/exporter/sqlbuilder.go index 1e411f0..3b4a5ed 100644 --- a/server/internal/exporter/sqlbuilder.go +++ b/server/internal/exporter/sqlbuilder.go @@ -131,11 +131,6 @@ func BuildSQLWithFields(req BuildRequest, whitelist map[string]bool) (string, [] if t == "order_voucher" && f == "receive_mode" { // 移除枚举转换 } - if t == "order_voucher" && f == "out_biz_no" { - cols = append(cols, "'' AS `order_voucher.out_biz_no`") - usedFields = append(usedFields, tf) - continue - } // Fallback for YMT tables that are not joined in schema: voucher, voucher_batch, merchant_key_send if req.Datasource == "ymt" && (t == "voucher" || t == "voucher_batch" || t == "merchant_key_send") { cols = append(cols, "'' AS `"+t+"."+f+"`") diff --git a/server/internal/schema/fields.go b/server/internal/schema/fields.go index ace097f..070b775 100644 --- a/server/internal/schema/fields.go +++ b/server/internal/schema/fields.go @@ -101,7 +101,6 @@ func AllWhitelist() map[string]bool { "order_voucher.overdue_time": true, "order_voucher.refund_amount": true, "order_voucher.official_price": true, - "order_voucher.out_biz_no": true, "order_voucher.account_no": true, "plan.id": true, "plan.title": true, @@ -324,7 +323,6 @@ func AllLabels() map[string]string { "order_voucher.overdue_time": "过期时间", "order_voucher.refund_amount": "退款金额", "order_voucher.official_price": "立减金订单.官方价", - "order_voucher.out_biz_no": "外部业务号", "order_voucher.account_no": "账户号", "order_voucher.trade_no": "立减金交易号", "order_voucher.receive_error": "领取错误",