Compare commits

..

No commits in common. "5f3a8b6906211c02f41f696727bb20bf31d6f702" and "1f7b8644348219ea17ca8eca1c4ad03c15821f01" have entirely different histories.

View File

@ -250,7 +250,7 @@ func CreateImportRecord(c *gin.Context) {
} else { } else {
var sheet1Columns = []string{"行数", "供应商法定全称", "错误信息"} var sheet1Columns = []string{"行数", "供应商法定全称", "错误信息"}
var sheet1 = excel.NewSheet("Sheet1", ErrSupplierRes, sheet1Columns) var sheet1 = excel.NewSheet("Sheet1", ErrSupplierRes, sheet1Columns)
ex, err := excel.NewExcelCreatorFromTemplate("./mistake.xlsx", "./supplier/excel/", "", sheet1) ex, err := excel.NewExcelCreatorFromTemplate("./mistake.xlsx", "./", "", sheet1)
ex.UseOption(excel.OptionFileNameSuffixWithUnixTime) ex.UseOption(excel.OptionFileNameSuffixWithUnixTime)
path, _, err := ex.WriteToFile() path, _, err := ex.WriteToFile()
outUrl, err = upload.PutBos(path, "", false) outUrl, err = upload.PutBos(path, "", false)
@ -259,7 +259,7 @@ func CreateImportRecord(c *gin.Context) {
return return
} }
defer func() { defer func() {
os.RemoveAll("./supplier") os.Remove(path)
}() }()
} }
req := &supplier.CreateImportRecordRequest{ req := &supplier.CreateImportRecordRequest{