Skip to content

Commit

Permalink
fix: 在导出表格之前取消掉用户自行添加的""和``
Browse files Browse the repository at this point in the history
  • Loading branch information
piexlMax(奇淼 committed Nov 6, 2024
1 parent 8bd337e commit b2cfbb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/service/system/sys_export_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ func (sysExportTemplateService *SysExportTemplateService) ExportExcel(templateID
for _, exTable := range tableMap {
var row []string
for _, column := range columns {
column = strings.ReplaceAll(column, "\"", "")
column = strings.ReplaceAll(column, "`", "")
if len(template.JoinTemplate) > 0 {
columnAs := strings.Split(column, " as ")
if len(columnAs) > 1 {
Expand Down

0 comments on commit b2cfbb9

Please sign in to comment.