From f30912e02f03507243b96dd0f2b9b8f391e1880a Mon Sep 17 00:00:00 2001 From: pixelmaxQM Date: Tue, 29 Oct 2024 20:46:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8D=E5=86=8D=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=AF=B9=E5=AF=BC=E5=87=BAkey=E8=BF=9B=E8=A1=8C=E5=A4=84?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E5=A6=82=E9=81=87=E5=88=B0=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E5=AD=97=E9=9C=80=E8=A6=81=E4=BD=BF=E7=94=A8=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E7=9A=84=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E8=A1=A8=E8=BE=BE=E5=BC=8F=E5=8C=85=E8=A3=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/service/system/sys_export_template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/service/system/sys_export_template.go b/server/service/system/sys_export_template.go index 868c07e7d..1a2534d4f 100644 --- a/server/service/system/sys_export_template.go +++ b/server/service/system/sys_export_template.go @@ -155,7 +155,7 @@ func (sysExportTemplateService *SysExportTemplateService) ExportExcel(templateID var tableTitle []string var selectKeyFmt []string for _, key := range columns { - selectKeyFmt = append(selectKeyFmt, fmt.Sprintf("`%s`", key)) + selectKeyFmt = append(selectKeyFmt, fmt.Sprintf("%s", key)) tableTitle = append(tableTitle, templateInfoMap[key]) } @@ -168,7 +168,7 @@ func (sysExportTemplateService *SysExportTemplateService) ExportExcel(templateID if len(template.JoinTemplate) > 0 { for _, join := range template.JoinTemplate { - db = db.Joins(join.JOINS + "`" + join.Table + "`" + " ON " + join.ON) + db = db.Joins(join.JOINS + join.Table + " ON " + join.ON) } }