mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-21 20:35:16 +00:00
fix: 在导出表格之前取消掉用户自行添加的""和``
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user