This commit is contained in:
蒋海成 2025-05-12 13:27:53 +08:00
parent 7643c4ed27
commit a07fa1843f

View File

@ -27,7 +27,7 @@ func WriteToExcel(dirPath string, orderInfos [][]interface{}) (string, error) {
for i := 0; i < len(orderInfos); i++ { for i := 0; i < len(orderInfos); i++ {
xlsx.SetCellStyle(index, fmt.Sprintf("A%v", rowIndex), fmt.Sprintf("O%v", rowIndex), style) xlsx.SetCellStyle(index, fmt.Sprintf("A%v", rowIndex), fmt.Sprintf("O%v", rowIndex), style)
xlsx.SetSheetRow(index, fmt.Sprintf("A%v", rowIndex), &orderInfos[i]) xlsx.SetSheetRow(index, fmt.Sprintf("A%v", rowIndex), &orderInfos[i])
rowIndex++ rowIndex = rowIndex + 1
} }
//path := dirPath + "/" + artShowInfo.ArtistName + "-" + artShowInfo.ShowSeq + "-price" + ".xlsx" //path := dirPath + "/" + artShowInfo.ArtistName + "-" + artShowInfo.ShowSeq + "-price" + ".xlsx"