修改
This commit is contained in:
parent
e073be30a1
commit
52fb7c301e
@ -23,7 +23,7 @@ func WriteToExcel(dirPath string, orderInfos [][]interface{}) (string, error) {
|
||||
|
||||
xlsx.SetSheetRow(index, "A1", &headRow)
|
||||
|
||||
rowIndex := 2
|
||||
rowIndex := 1
|
||||
for i := 0; i < len(orderInfos); i++ {
|
||||
xlsx.SetCellStyle(index, fmt.Sprintf("A%v", rowIndex), fmt.Sprintf("M%v", rowIndex), style)
|
||||
xlsx.SetSheetRow(index, fmt.Sprintf("A%v", rowIndex), &orderInfos[i])
|
||||
|
Loading…
Reference in New Issue
Block a user