移除多余的类型转换

This commit is contained in:
huiyifyj 2024-12-21 11:33:38 +08:00
parent 7d30ea942b
commit aed259ac1f
No known key found for this signature in database
GPG Key ID: 67D4F264AF9D2C4C
1 changed files with 7 additions and 6 deletions

View File

@ -4,6 +4,12 @@ import (
"bytes"
"encoding/json"
"fmt"
"mime/multipart"
"net/url"
"strconv"
"strings"
"time"
"github.com/flipped-aurora/gin-vue-admin/server/global"
"github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
"github.com/flipped-aurora/gin-vue-admin/server/model/system"
@ -11,11 +17,6 @@ import (
"github.com/flipped-aurora/gin-vue-admin/server/utils"
"github.com/xuri/excelize/v2"
"gorm.io/gorm"
"mime/multipart"
"net/url"
"strconv"
"strings"
"time"
)
type SysExportTemplateService struct {
@ -155,7 +156,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, key)
tableTitle = append(tableTitle, templateInfoMap[key])
}